WordPress.org

Make WordPress Core

Changeset 50563


Ignore:
Timestamp:
03/22/2021 10:40:29 PM (7 weeks ago)
Author:
SergeyBiryukov
Message:

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.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/includes/deprecated.php

    r50008 r50563  
    498498        $this->search_term = wp_unslash( $search_term );
    499499        $this->raw_page = ( '' == $page ) ? false : (int) $page;
    500         $this->page = (int) ( '' == $page ) ? 1 : $page;
     500        $this->page = ( '' == $page ) ? 1 : (int) $page;
    501501        $this->role = $role;
    502502
Note: See TracChangeset for help on using the changeset viewer.