- 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:
nikitasinelnikov
2020-11-24 12:55:22 +02:00
parent 0bd61d74d7
commit fa13e82202
10 changed files with 37 additions and 29 deletions
+1 -1
View File
@@ -2013,7 +2013,7 @@ if ( ! class_exists( 'um\core\User' ) ) {
*
*/
function user_exists_by_id( $user_id ) {
$aux = get_userdata( intval( $user_id ) );
$aux = get_userdata( absint( $user_id ) );
if ( $aux == false ) {
return false;
} else {