From fdf3cc0e7953c123d007f6809f5222735c263cb1 Mon Sep 17 00:00:00 2001 From: Champ Camba Date: Thu, 19 Jan 2017 12:01:23 +0800 Subject: [PATCH] Fix WPML compatibility issue --- core/um-logout.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 ); }