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

git-svn-id: http://svn.automattic.com/wordpress/trunk@16262 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
ryan 2010-11-09 20:01:56 +00:00
parent c1d8299f92
commit 8a62fb6cb5
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 );
}