From 4cf1dbe0f85a2f7303b67ee70f0e8051545b3db2 Mon Sep 17 00:00:00 2001 From: Andrew Nacin Date: Wed, 7 Nov 2012 07:59:46 +0000 Subject: [PATCH] restrict_manage_users action. props jakemgold, johnjamesjacoby. fixes #19295. git-svn-id: https://develop.svn.wordpress.org/trunk@22414 602fd350-edb4-49c9-b593-d223f7449a82 --- wp-admin/includes/class-wp-users-list-table.php | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/wp-admin/includes/class-wp-users-list-table.php b/wp-admin/includes/class-wp-users-list-table.php index 7039721418..cdc5a52215 100644 --- a/wp-admin/includes/class-wp-users-list-table.php +++ b/wp-admin/includes/class-wp-users-list-table.php @@ -136,18 +136,20 @@ class WP_Users_List_Table extends WP_List_Table { function extra_tablenav( $which ) { if ( 'top' != $which ) return; - if ( ! current_user_can( 'promote_users' ) ) - return; -?> + ?>
+ - -
-'; } function current_action() {