Add 'Network Activate' link to the plugin upgrader class. props PeteMall, fixes #13097.
git-svn-id: https://develop.svn.wordpress.org/trunk@14424 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
f7dfc84136
commit
09fda79a16
@ -1216,6 +1216,9 @@ class Plugin_Installer_Skin extends WP_Upgrader_Skin {
|
||||
'activate_plugin' => '<a href="' . wp_nonce_url('plugins.php?action=activate&plugin=' . $plugin_file, 'activate-plugin_' . $plugin_file) . '" title="' . esc_attr__('Activate this plugin') . '" target="_parent">' . __('Activate Plugin') . '</a>',
|
||||
);
|
||||
|
||||
if ( is_multisite() && current_user_can( 'manage_network_plugins' ) )
|
||||
$install_actions['network_activate'] = '<a href="' . wp_nonce_url('plugins.php?action=activate&networkwide=1&plugin=' . $plugin_file, 'activate-plugin_' . $plugin_file) . '" title="' . __('Activate this plugin for all sites in this network') . '" target="_parent">' . __('Network Activate') . '</a>';
|
||||
|
||||
if ( $this->type == 'web' )
|
||||
$install_actions['plugins_page'] = '<a href="' . admin_url('plugin-install.php') . '" title="' . esc_attr__('Return to Plugin Installer') . '" target="_parent">' . __('Return to Plugin Installer') . '</a>';
|
||||
else
|
||||
|
Loading…
Reference in New Issue
Block a user