mirror of
https://github.com/10h30/ultimatemember.git
synced 2026-07-11 18:56:10 +09:00
Fix WPML fatal error issue
This commit is contained in:
+1
-1
@@ -36,7 +36,7 @@ class UM_Logout {
|
||||
|
||||
$has_translation = true;
|
||||
|
||||
if( function_exists('icl_object_id') && defined('ICL_LANGUAGE_CODE') ){ // checks if WPML exists
|
||||
if( function_exists('icl_object_id') && defined('ICL_LANGUAGE_CODE') && isset( $sitepress ) ){ // checks if WPML exists
|
||||
$trid = $sitepress->get_element_trid( $current_page_ID );
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user