Fix PolyLang & WPML compatibility issue

This commit is contained in:
Champ Camba
2017-01-19 10:52:47 +08:00
parent 978995d807
commit ae48108d56
+1 -1
View File
@@ -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 );
}