mirror of
https://github.com/10h30/ultimatemember.git
synced 2026-06-05 15:09:37 +09:00
Fix WPML compatibility issue
This commit is contained in:
+2
-2
@@ -30,13 +30,13 @@ class UM_Logout {
|
||||
|
||||
if( function_exists('icl_get_current_language') ){
|
||||
$language_code = icl_get_current_language();
|
||||
}else if( function_exists('icl_object_id') && defined('ICL_LANGUAGE_CODE') ){
|
||||
}else if( function_exists('icl_object_id') && defined('ICL_LANGUAGE_CODE') ){ // checks if WPML exists
|
||||
$language_code = ICL_LANGUAGE_CODE;
|
||||
}
|
||||
|
||||
$has_translation = true;
|
||||
|
||||
if( function_exists('icl_object_id') && defined('ICL_LANGUAGE_CODE') ){
|
||||
if( function_exists('icl_object_id') && defined('ICL_LANGUAGE_CODE') ){ // checks if WPML exists
|
||||
$trid = $sitepress->get_element_trid( $current_page_ID );
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user