WordPress.org

Make WordPress Core


Ignore:
Timestamp:
06/28/2015 12:35:42 AM (4 years ago)
Author:
wonderboymusic
Message:

When searching for users using the search arg in get_users()/WP_User_Query, also search the user's email, url, and display name.

Adds unit tests.

Props mordauk, wonderboymusic.
Fixes #27304.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/user.php

    r32904 r32980  
    798798                    $search_columns = array('user_url');
    799799                else
    800                     $search_columns = array('user_login', 'user_nicename');
     800                    $search_columns = array('user_login', 'user_url', 'user_email', 'user_nicename', 'display_name');
    801801            }
    802802
Note: See TracChangeset for help on using the changeset viewer.