mirror of
https://github.com/10h30/ultimatemember.git
synced 2026-07-12 19:26:35 +09:00
Fix PHP7 compatibility issue
This commit is contained in:
@@ -46,8 +46,10 @@
|
||||
function um_dynamic_user_profile_title( $title, $id = '' ) {
|
||||
global $ultimatemember;
|
||||
|
||||
if( is_admin() )
|
||||
|
||||
if( is_admin() ){
|
||||
return $title;
|
||||
}
|
||||
|
||||
if ( $id == $ultimatemember->permalinks->core['user'] && in_the_loop() ) {
|
||||
if ( um_is_core_page('user') && um_get_requested_user() ) {
|
||||
@@ -57,6 +59,11 @@
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
if( ! function_exists('utf8_decode') ){
|
||||
return $title;
|
||||
}
|
||||
|
||||
return (strlen($title)!==strlen(utf8_decode($title))) ? $title : utf8_encode($title);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user