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:
parent
f28e46af02
commit
9b18657c74
@ -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
Block a user