mirror of
https://github.com/10h30/ultimatemember.git
synced 2026-07-18 06:03:38 +09:00
Fix WPML compatibility with UM logout
This commit is contained in:
+4
-1
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user