Make WordPress Core

Changeset 34813


Ignore:
Timestamp:
10/03/2015 09:48:35 PM (9 years ago)
Author:
DrewAPicture
Message:

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.

Location:
trunk/src/wp-admin/includes
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/includes/class-wp-ms-users-list-table.php

    r34796 r34813  
    7777
    7878        /** This filter is documented in wp-admin/includes/class-wp-users-list-table.php */
    79         $args = apply_filters( 'users_list_table_query_args', $args, $this );
     79        $args = apply_filters( 'users_list_table_query_args', $args );
    8080
    8181        // Query the user IDs for this page
  • trunk/src/wp-admin/includes/class-wp-users-list-table.php

    r34796 r34813  
    115115         * @param array $args Arguments passed to WP_User_Query to retrieve items for the current
    116116         *                    users list table.
    117          * @param mixed $this The current WP_Users_List_Table or WP_MS_Users_List_Table instance.
    118117         */
    119         $args = apply_filters( 'users_list_table_query_args', $args, $this );
     118        $args = apply_filters( 'users_list_table_query_args', $args );
    120119
    121120        // Query the user IDs for this page
Note: See TracChangeset for help on using the changeset viewer.