mirror of
https://github.com/10h30/ultimatemember.git
synced 2026-06-05 15:09:37 +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 ) {
|
||||
global $sitepress;
|
||||
|
||||
if( ! function_exists('wpml_object_id ') ) return array(
|
||||
'default' => '',
|
||||
'current' => $current
|
||||
);
|
||||
if ( ! $this->is_wpml_active() )
|
||||
return $current_code;
|
||||
|
||||
$current_code = ! empty( $current_code ) ? $current_code : $sitepress->get_current_language();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user