diff --git a/lib/simple-local-avatars/includes/class-simple-local-avatars.php b/lib/simple-local-avatars/includes/class-simple-local-avatars.php index 0a2cdb1c..98c02522 100644 --- a/lib/simple-local-avatars/includes/class-simple-local-avatars.php +++ b/lib/simple-local-avatars/includes/class-simple-local-avatars.php @@ -925,7 +925,7 @@ public function assign_new_user_avatar( $url_or_media_id, $user_id ) { $meta_value = array(); // set the new avatar - if ( is_int( $url_or_media_id + 0 ) ) { + if ( is_numeric( $url_or_media_id ) ) { $meta_value['media_id'] = $url_or_media_id; $url_or_media_id = wp_get_attachment_url( $url_or_media_id ); }