From b50376d557713d171dd6d49e47c32424a671618a Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Mon, 22 Mar 2021 22:40:29 +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. git-svn-id: https://develop.svn.wordpress.org/trunk@50563 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-admin/includes/deprecated.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/wp-admin/includes/deprecated.php b/src/wp-admin/includes/deprecated.php index da725f8ccd..75c0ed3d87 100644 --- a/src/wp-admin/includes/deprecated.php +++ b/src/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();