WordPress.org

Make WordPress Core

Changeset 21864


Ignore:
Timestamp:
09/16/2012 04:11:01 PM (6 years ago)
Author:
nacin
Message:

Trim incoming searches on the users list table. props tollmanz. fixes #21318.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/includes/class-wp-users-list-table.php

    r21789 r21864  
    3636        global $role, $usersearch;
    3737
    38         $usersearch = isset( $_REQUEST['s'] ) ? $_REQUEST['s'] : '';
     38        $usersearch = isset( $_REQUEST['s'] ) ? trim( $_REQUEST['s'] ) : '';
    3939
    4040        $role = isset( $_REQUEST['role'] ) ? $_REQUEST['role'] : '';
Note: See TracChangeset for help on using the changeset viewer.