From 0ee244739ac508ac5c6fcfe8150f00f35c1d221d Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Mon, 22 Mar 2021 22:42:04 +0000 Subject: [PATCH] Code Modernization: Correct expected data type for `WP_User_Search::$page` property. This fixes erroneous parentheses placement and applies the type cast to the variable it was intended for. Follow-up to [3864]. Props hellofromTonya, jrf, xknown. See #51423. Built from https://develop.svn.wordpress.org/trunk@50563 git-svn-id: http://core.svn.wordpress.org/trunk@50176 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-admin/includes/deprecated.php | 2 +- wp-includes/version.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/wp-admin/includes/deprecated.php b/wp-admin/includes/deprecated.php index da725f8ccd..75c0ed3d87 100644 --- a/wp-admin/includes/deprecated.php +++ b/wp-admin/includes/deprecated.php @@ -497,7 +497,7 @@ class WP_User_Search { $this->search_term = wp_unslash( $search_term ); $this->raw_page = ( '' == $page ) ? false : (int) $page; - $this->page = (int) ( '' == $page ) ? 1 : $page; + $this->page = ( '' == $page ) ? 1 : (int) $page; $this->role = $role; $this->prepare_query(); diff --git a/wp-includes/version.php b/wp-includes/version.php index 11c4c93c12..7af6b061a5 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -13,7 +13,7 @@ * * @global string $wp_version */ -$wp_version = '5.8-alpha-50562'; +$wp_version = '5.8-alpha-50563'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.