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