mirror of
https://github.com/10h30/ultimatemember.git
synced 2026-07-19 06:33:50 +09:00
- text changes;
- fixed issue with WPML;
This commit is contained in:
@@ -671,12 +671,15 @@ function um_is_core_page( $page ) {
|
||||
|
||||
if (isset( $post->ID ) && isset( UM()->config()->permalinks[$page] ) && $post->ID == UM()->config()->permalinks[$page])
|
||||
return true;
|
||||
|
||||
if (isset( $post->ID ) && get_post_meta( $post->ID, '_um_wpml_' . $page, true ) == 1)
|
||||
return true;
|
||||
|
||||
global $sitepress;
|
||||
if ( UM()->config()->permalinks[$page] == wpml_object_id_filter( $post->ID, 'page', true, $sitepress->get_default_language() ) ) {
|
||||
return true;
|
||||
if ( UM()->external_integrations()->is_wpml_active() ) {
|
||||
global $sitepress;
|
||||
if ( UM()->config()->permalinks[$page] == wpml_object_id_filter( $post->ID, 'page', true, $sitepress->get_default_language() ) ) {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
||||
if (isset( $post->ID )) {
|
||||
|
||||
Reference in New Issue
Block a user