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
This commit is contained in:
parent
63fba77ec7
commit
0ee244739a
|
@ -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();
|
||||
|
|
|
@ -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.
|
||||
|
|
Loading…
Reference in New Issue