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. Built from https://develop.svn.wordpress.org/trunk@34813 git-svn-id: http://core.svn.wordpress.org/trunk@34778 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
f08e5c2d80
commit
b453c9e976
|
@ -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 );
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
*
|
||||
* @global string $wp_version
|
||||
*/
|
||||
$wp_version = '4.4-alpha-34812';
|
||||
$wp_version = '4.4-alpha-34813';
|
||||
|
||||
/**
|
||||
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||
|
|
Loading…
Reference in New Issue