mirror of
https://github.com/10h30/ultimatemember.git
synced 2026-07-11 18:56:10 +09:00
- There are changed PHP’s intval(), strval(), floatval(), and boolval() typecasting functions to (int), (string), (float) and (bool) regarding [this doc](https://make.wordpress.org/core/2020/11/20/miscellaneous-developer-focused-changes-in-wordpress-5-6/).
This commit is contained in:
@@ -192,7 +192,7 @@ if ( ! class_exists( 'um\core\Profile' ) ) {
|
||||
if ( isset( $tab_data['default_privacy'] ) ) {
|
||||
$privacy = $tab_data['default_privacy'];
|
||||
} else {
|
||||
$privacy = intval( UM()->options()->get( 'profile_tab_' . $tab . '_privacy' ) );
|
||||
$privacy = (int) UM()->options()->get( 'profile_tab_' . $tab . '_privacy' );
|
||||
}
|
||||
|
||||
$privacy = apply_filters( 'um_profile_menu_tab_privacy', $privacy, $tab );
|
||||
|
||||
Reference in New Issue
Block a user