mirror of
https://github.com/10h30/ultimatemember.git
synced 2026-07-11 18:56:10 +09:00
Fixed: SEO link canonical for the profile page
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user