From 80873094fe47e7f7628265594ee823d2acd4538d Mon Sep 17 00:00:00 2001 From: nacin Date: Thu, 28 Oct 2010 08:30:37 +0000 Subject: [PATCH] Remove unnecessary bulk actions for plugins re: network admin. props PeteMall, see #14435. git-svn-id: http://svn.automattic.com/wordpress/trunk@16036 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-admin/includes/list-table-plugins.php | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/wp-admin/includes/list-table-plugins.php b/wp-admin/includes/list-table-plugins.php index 87b2b0961a..b407499366 100644 --- a/wp-admin/includes/list-table-plugins.php +++ b/wp-admin/includes/list-table-plugins.php @@ -263,6 +263,12 @@ class WP_Plugins_Table extends WP_List_Table { $actions['update-selected'] = __( 'Update' ); if ( current_user_can( 'delete_plugins' ) && ( 'active' != $status ) ) $actions['delete-selected'] = __( 'Delete' ); + + if ( is_multisite() && !is_network_admin() ) { + unset( $actions['network-activate-selected'] ); + unset( $actions['update-selected'] ); + unset( $actions['delete-selected'] ); + } return $actions; } @@ -360,7 +366,7 @@ class WP_Plugins_Table extends WP_List_Table { $actions['activate'] = '' . __('Activate') . ''; - if ( current_user_can('delete_plugins') ) + if ( ! is_multisite() && current_user_can('delete_plugins') ) $actions['delete'] = '' . __('Delete') . ''; } // end if $is_active } // end if is_network_admin()