mirror of
https://github.com/10h30/ultimatemember.git
synced 2026-07-14 04:06:36 +09:00
Fix PolyLang & WPML compatibility issue
This commit is contained in:
+1
-1
@@ -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 );
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user