From ae48108d566c3f3d11df68a1956d01f4f246420b Mon Sep 17 00:00:00 2001 From: Champ Camba Date: Thu, 19 Jan 2017 10:52:47 +0800 Subject: [PATCH] Fix PolyLang & WPML compatibility issue --- core/um-logout.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/um-logout.php b/core/um-logout.php index f1428520..93045623 100644 --- a/core/um-logout.php +++ b/core/um-logout.php @@ -36,7 +36,7 @@ class UM_Logout { $has_translation = true; - if( function_exists('icl_object_id') ){ + if( function_exists('icl_object_id') && defined('ICL_LANGUAGE_CODE') ){ $trid = $sitepress->get_element_trid( $current_page_ID ); }