Fixed: SEO link canonical for the profile page

This commit is contained in:
denisbaranov
2020-06-19 17:56:49 +03:00
parent 60339b59cb
commit 3851781161
3 changed files with 60 additions and 6 deletions
+5 -3
View File
@@ -39,9 +39,9 @@ if ( ! class_exists( 'um\core\Permalinks' ) ) {
//add_action( 'um_user_after_updating_profile', array( &$this, 'profile_url' ), 1 );
remove_action( 'wp_head', 'rel_canonical' );
add_action( 'wp_head', array( &$this, 'um_rel_canonical_' ), 9 );
/* @deprecated since version 2.1.7 */
//remove_action( 'wp_head', 'rel_canonical' );
//add_action( 'wp_head', array( &$this, 'um_rel_canonical_' ), 9 );
}
@@ -55,6 +55,8 @@ if ( ! class_exists( 'um\core\Permalinks' ) ) {
/**
* SEO canonical href bugfix
* @deprecated since version 2.1.7
* @see function um_profile_remove_wpseo()
*/
function um_rel_canonical_() {
global $wp_the_query;