WordPress.org

Make WordPress Core

Ticket #13097: 13097.2.diff

File 13097.2.diff, 1.1 KB (added by PeteMall, 5 years ago)

Refreshed Patch.

  • wp-admin/includes/class-wp-upgrader.php

     
    12161216                        'activate_plugin' => '<a href="' . wp_nonce_url('plugins.php?action=activate&amp;plugin=' . $plugin_file, 'activate-plugin_' . $plugin_file) . '" title="' . esc_attr__('Activate this plugin') . '" target="_parent">' . __('Activate Plugin') . '</a>', 
    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>'; 
    12211224                else