- text changes;

- fixed issue with WPML;
This commit is contained in:
nikitozzzzzzz
2018-02-08 09:42:03 +02:00
parent 5ac147e41f
commit 9546ac0a6c
2 changed files with 7 additions and 4 deletions
+6 -3
View File
@@ -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 )) {