List Tables: Pass the $which parameter to restrict_manage_posts and restrict_manage_users.
`$which` contains the location of the extra table nav markup: 'top' or 'bottom'. Props martin.krcho. Fixes #35307. Built from https://develop.svn.wordpress.org/trunk@37422 git-svn-id: http://core.svn.wordpress.org/trunk@37388 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
@@ -275,8 +275,11 @@ class WP_Users_List_Table extends WP_List_Table {
|
||||
* in the Users list table.
|
||||
*
|
||||
* @since 3.5.0
|
||||
* @since 4.6.0 The `$which` parameter was added.
|
||||
*
|
||||
* @param string $which The location of the extra table nav markup: 'top' or 'bottom'.
|
||||
*/
|
||||
do_action( 'restrict_manage_users' );
|
||||
do_action( 'restrict_manage_users', $which );
|
||||
echo '</div>';
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user