Users: Don't pass the current WP_Users_List_Table
or WP_MS_Users_List_Table
instance to the users_list_table_query_args
filter after all.
After some discussion, it was decided that Multisite vs single site context can just as easily be derived using available functions like `is_network_admin()`, `get_current_screen()`, etc., rendering the second parameter moot. The hook was introduced in [34796]. Fixes #25360. git-svn-id: https://develop.svn.wordpress.org/trunk@34813 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
ffa997a342
commit
14b8056d24
@ -76,7 +76,7 @@ class WP_MS_Users_List_Table extends WP_List_Table {
|
||||
$mode = empty( $_REQUEST['mode'] ) ? 'list' : $_REQUEST['mode'];
|
||||
|
||||
/** This filter is documented in wp-admin/includes/class-wp-users-list-table.php */
|
||||
$args = apply_filters( 'users_list_table_query_args', $args, $this );
|
||||
$args = apply_filters( 'users_list_table_query_args', $args );
|
||||
|
||||
// Query the user IDs for this page
|
||||
$wp_user_search = new WP_User_Query( $args );
|
||||
|
@ -114,9 +114,8 @@ class WP_Users_List_Table extends WP_List_Table {
|
||||
*
|
||||
* @param array $args Arguments passed to WP_User_Query to retrieve items for the current
|
||||
* users list table.
|
||||
* @param mixed $this The current WP_Users_List_Table or WP_MS_Users_List_Table instance.
|
||||
*/
|
||||
$args = apply_filters( 'users_list_table_query_args', $args, $this );
|
||||
$args = apply_filters( 'users_list_table_query_args', $args );
|
||||
|
||||
// Query the user IDs for this page
|
||||
$wp_user_search = new WP_User_Query( $args );
|
||||
|
Loading…
Reference in New Issue
Block a user