mirror of
https://github.com/10h30/ultimatemember.git
synced 2026-07-13 11:46:27 +09:00
- fixed canonical link in profile translated with WPML
This commit is contained in:
@@ -79,7 +79,7 @@ add_filter( 'the_title', 'um_dynamic_user_profile_title', 100000, 2 );
|
||||
* @return string|false The canonical URL, or false if current URL is canonical.
|
||||
*/
|
||||
function um_get_canonical_url( $canonical_url, $post ) {
|
||||
if ( UM()->config()->permalinks['user'] == $post->ID ) {
|
||||
if ( UM()->config()->permalinks['user'] == $post->ID || (UM()->external_integrations()->is_wpml_active() && UM()->config()->permalinks['user'] == wpml_object_id_filter( $post->ID, 'page', true, icl_get_default_language() )) ) {
|
||||
|
||||
/**
|
||||
* UM hook
|
||||
|
||||
Reference in New Issue
Block a user