mirror of
https://github.com/10h30/ultimatemember.git
synced 2026-07-20 07:04:06 +09:00
Fix wpml existence validation
This commit is contained in:
@@ -269,10 +269,8 @@ if ( ! class_exists( 'um\core\External_Integrations' ) ) {
|
|||||||
function get_languages_codes( $current_code = false ) {
|
function get_languages_codes( $current_code = false ) {
|
||||||
global $sitepress;
|
global $sitepress;
|
||||||
|
|
||||||
if( ! function_exists('wpml_object_id ') ) return array(
|
if ( ! $this->is_wpml_active() )
|
||||||
'default' => '',
|
return $current_code;
|
||||||
'current' => $current
|
|
||||||
);
|
|
||||||
|
|
||||||
$current_code = ! empty( $current_code ) ? $current_code : $sitepress->get_current_language();
|
$current_code = ! empty( $current_code ) ? $current_code : $sitepress->get_current_language();
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user