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

git-svn-id: http://svn.automattic.com/wordpress/trunk@18179 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
ryan 2011-06-07 16:05:04 +00:00
parent 1b8b61d1ae
commit 6c6db6a54e

View File

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