Fix WPML compatibility with UM logout

This commit is contained in:
Champ Camba
2017-01-18 21:16:26 +08:00
parent edcf4c06f3
commit 5668200ed3
+4 -1
View File
@@ -35,7 +35,10 @@ class UM_Logout {
}
$has_translation = true;
$trid = $sitepress->get_element_trid( $current_page_ID );
if( function_exists('icl_object_id') ){
$trid = $sitepress->get_element_trid( $current_page_ID );
}
if( icl_get_default_language() !== $language_code ){
$not_default_lang = true;