WordPress.org

Make WordPress Core

Ticket #21318: 21318.diff

File 21318.diff, 500 bytes (added by tollmanz, 21 months ago)
  • wp-admin/includes/class-wp-users-list-table.php

     
    5353                ); 
    5454 
    5555                if ( '' !== $args['search'] ) 
    56                         $args['search'] = '*' . $args['search'] . '*'; 
     56                        $args['search'] = '*' . trim( $args['search'] ) . '*'; 
    5757 
    5858                if ( $this->is_site_users ) 
    5959                        $args['blog_id'] = $this->site_id;