mirror of
git://develop.git.wordpress.org/
synced 2025-03-20 12:00:03 +01:00
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
This commit is contained in:
parent
ccb4474b4a
commit
b50376d557
@ -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();
|
||||
|
Loading…
x
Reference in New Issue
Block a user