mirror of
https://github.com/10h30/ultimatemember.git
synced 2026-07-11 18:56:10 +09:00
Fix WPML permalink and form compatibility
This commit is contained in:
@@ -516,6 +516,10 @@ function um_profile_id() {
|
||||
return true;
|
||||
if ( isset($post->ID) && get_post_meta( $post->ID, '_um_wpml_' . $page, true ) == 1 )
|
||||
return true;
|
||||
if ( isset( $ultimatemember->permalinks->core[ $page ] )
|
||||
&& get_post_meta( $post->ID, '_icl_lang_duplicate_of', true ) == $ultimatemember->permalinks->core[ $page ] )
|
||||
return true;
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user