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:
parent
c1d8299f92
commit
8a62fb6cb5
|
@ -458,7 +458,7 @@ class WP_User_Query extends WP_Object_Query {
|
||||||
elseif ( preg_match('|^https?://|', $search) )
|
elseif ( preg_match('|^https?://|', $search) )
|
||||||
$search_columns = array('user_url');
|
$search_columns = array('user_url');
|
||||||
else
|
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 );
|
$this->query_where .= $this->get_search_sql( $search, $search_columns, $wild );
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue