From 5b6f2a3944bac906269fb4ad957a3f1c6af1fb10 Mon Sep 17 00:00:00 2001 From: nacin Date: Mon, 3 May 2010 23:18:49 +0000 Subject: [PATCH] Add 'Network Activate' link to the plugin upgrader class. props PeteMall, fixes #13097. git-svn-id: http://svn.automattic.com/wordpress/trunk@14424 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-admin/includes/class-wp-upgrader.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/wp-admin/includes/class-wp-upgrader.php b/wp-admin/includes/class-wp-upgrader.php index 245b8c326d..723c74d698 100644 --- a/wp-admin/includes/class-wp-upgrader.php +++ b/wp-admin/includes/class-wp-upgrader.php @@ -1216,6 +1216,9 @@ class Plugin_Installer_Skin extends WP_Upgrader_Skin { 'activate_plugin' => '' . __('Activate Plugin') . '', ); + if ( is_multisite() && current_user_can( 'manage_network_plugins' ) ) + $install_actions['network_activate'] = '' . __('Network Activate') . ''; + if ( $this->type == 'web' ) $install_actions['plugins_page'] = '' . __('Return to Plugin Installer') . ''; else