Drop display_name from user search columns. It doesn't have an index. see #15170

git-svn-id: https://develop.svn.wordpress.org/trunk@16262 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Ryan Boren 2010-11-09 20:01:56 +00:00
parent f28e46af02
commit 9b18657c74
1 changed files with 1 additions and 1 deletions

View File

@ -458,7 +458,7 @@ class WP_User_Query extends WP_Object_Query {
elseif ( preg_match('|^https?://|', $search) )
$search_columns = array('user_url');
else
$search_columns = array('user_login', 'user_nicename', 'display_name');
$search_columns = array('user_login', 'user_nicename');
$this->query_where .= $this->get_search_sql( $search, $search_columns, $wild );
}