diff --git a/core/um-logout.php b/core/um-logout.php index 93045623..6d6d7d3f 100644 --- a/core/um-logout.php +++ b/core/um-logout.php @@ -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 ); }