WordPress.org

Make WordPress Core

Changeset 33801


Ignore:
Timestamp:
08/29/2015 12:18:06 AM (4 years ago)
Author:
johnbillion
Message:

Bring network admin user searching to parity with single site user searching by wrapping search terms in asterisks. This means that searches don't require an exact match and therefore significantly reduces friction when searching for users on the network admin screens.

Fixes #32913

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/includes/class-wp-ms-users-list-table.php

    r33777 r33801  
    4343        );
    4444
    45         if ( wp_is_large_network( 'users' ) )
     45        if ( wp_is_large_network( 'users' ) ) {
    4646            $args['search'] = ltrim( $args['search'], '*' );
     47        } else if ( '' !== $args['search'] ) {
     48            $args['search'] = trim( $args['search'], '*' );
     49            $args['search'] = '*' . $args['search'] . '*';
     50        }
    4751
    4852        if ( $role == 'super' ) {
Note: See TracChangeset for help on using the changeset viewer.