Don't add search wildcards to an empty string. fixes #17719

git-svn-id: https://develop.svn.wordpress.org/trunk@18179 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Ryan Boren 2011-06-07 16:05:04 +00:00
parent efb682a641
commit 4efc4641ac

View File

@ -52,7 +52,8 @@ class WP_Users_List_Table extends WP_List_Table {
'fields' => 'all_with_meta'
);
$args['search'] = '*' . $args['search'] . '*';
if ( '' !== $args['search'] )
$args['search'] = '*' . $args['search'] . '*';
if ( $this->is_site_users )
$args['blog_id'] = $this->site_id;