WordPress.org

Make WordPress Core

Changeset 14424


Ignore:
Timestamp:
05/03/2010 11:18:49 PM (10 years ago)
Author:
nacin
Message:

Add 'Network Activate' link to the plugin upgrader class. props PeteMall, fixes #13097.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/includes/class-wp-upgrader.php

    r14348 r14424  
    12171217                            );
    12181218
     1219        if ( is_multisite() && current_user_can( 'manage_network_plugins' ) )
     1220            $install_actions['network_activate'] = '<a href="' . wp_nonce_url('plugins.php?action=activate&amp;networkwide=1&amp;plugin=' . $plugin_file, 'activate-plugin_' . $plugin_file) . '" title="' . __('Activate this plugin for all sites in this network') . '" target="_parent">' . __('Network Activate') . '</a>';
     1221
    12191222        if ( $this->type == 'web' )
    12201223            $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>';
Note: See TracChangeset for help on using the changeset viewer.