mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-06-28 06:10:09 +00: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:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user