mirror of
https://github.com/WordPress/WordPress.git
synced 2024-12-23 09:37:42 +01:00
Add user_search_columns filter to WP_User_Query::prepare_query().
props aaroncampbell. fixes #16366. git-svn-id: http://core.svn.wordpress.org/trunk@24056 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
feffc2716f
commit
8131644bf6
@ -480,6 +480,8 @@ class WP_User_Query {
|
||||
$search_columns = array('user_login', 'user_nicename');
|
||||
}
|
||||
|
||||
$search_columns = apply_filters( 'user_search_columns', $search_columns, $search, $this );
|
||||
|
||||
$this->query_where .= $this->get_search_sql( $search, $search_columns, $wild );
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user