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

git-svn-id: http://core.svn.wordpress.org/trunk@21864 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Andrew Nacin 2012-09-16 16:11:01 +00:00
parent 8203ef4905
commit e914a04335

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'] : '';