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

git-svn-id: https://develop.svn.wordpress.org/trunk@21864 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Andrew Nacin 2012-09-16 16:11:01 +00:00
parent 2815798357
commit 50daa191c2
1 changed files with 1 additions and 1 deletions

View File

@ -35,7 +35,7 @@ class WP_Users_List_Table extends WP_List_Table {
function prepare_items() {
global $role, $usersearch;
$usersearch = isset( $_REQUEST['s'] ) ? $_REQUEST['s'] : '';
$usersearch = isset( $_REQUEST['s'] ) ? trim( $_REQUEST['s'] ) : '';
$role = isset( $_REQUEST['role'] ) ? $_REQUEST['role'] : '';