diff --git a/includes/admin/core/class-admin-metabox.php b/includes/admin/core/class-admin-metabox.php index 35052966..e358042d 100644 --- a/includes/admin/core/class-admin-metabox.php +++ b/includes/admin/core/class-admin-metabox.php @@ -45,7 +45,7 @@ if ( ! class_exists( 'um\admin\core\Admin_Metabox' ) ) { /** * @todo remove these options */ - add_filter( 'um_admin_access_settings_fields', array( &$this, 'wpml_post_options' ), 10, 2 ); + //add_filter( 'um_admin_access_settings_fields', array( &$this, 'wpml_post_options' ), 10, 2 ); } @@ -57,7 +57,7 @@ if ( ! class_exists( 'um\admin\core\Admin_Metabox' ) ) { * * @return array */ - function wpml_post_options( $fields, $data ) { + /*function wpml_post_options( $fields, $data ) { global $post; if ( ! function_exists( 'icl_get_current_language' ) ) { @@ -83,7 +83,7 @@ if ( ! class_exists( 'um\admin\core\Admin_Metabox' ) ) { ); return $fields; - } + }*/ /** diff --git a/includes/core/class-external-integrations.php b/includes/core/class-external-integrations.php index 1f5ddcd5..77483fcc 100644 --- a/includes/core/class-external-integrations.php +++ b/includes/core/class-external-integrations.php @@ -151,11 +151,11 @@ if ( ! class_exists( 'um\core\External_Integrations' ) ) { if ( ! $this->is_wpml_active() ) return $profile_url; - if ( function_exists( 'icl_get_current_language' ) && icl_get_current_language() != icl_get_default_language() ) { + /*if ( function_exists( 'icl_get_current_language' ) && icl_get_current_language() != icl_get_default_language() ) { if ( get_the_ID() > 0 && get_post_meta( get_the_ID(), '_um_wpml_user', true ) == 1 ) { $profile_url = get_permalink( get_the_ID() ); } - } + }*/ // WPML compatibility if ( function_exists( 'icl_object_id' ) ) { @@ -286,12 +286,12 @@ if ( ! class_exists( 'um\core\External_Integrations' ) ) { if ( function_exists( 'icl_get_current_language' ) && icl_get_current_language() != icl_get_default_language() ) { $url = $this->get_url_for_language( UM()->config()->permalinks[ $slug ], icl_get_current_language() ); - if ( get_post_meta( get_the_ID(), '_um_wpml_account', true ) == 1 ) { + /*if ( get_post_meta( get_the_ID(), '_um_wpml_account', true ) == 1 ) { $url = get_permalink( get_the_ID() ); } if ( get_post_meta( get_the_ID(), '_um_wpml_user', true ) == 1 ) { $url = $this->get_url_for_language( UM()->config()->permalinks[ $slug ], icl_get_current_language() ); - } + }*/ if ( $updated ) { $url = add_query_arg( 'updated', esc_attr( $updated ), $url );