Make WordPress Core

Ticket #20983: 20983.diff

File 20983.diff, 1.3 KB (added by Ipstenu, 12 years ago)
  • wp-admin/includes/class-wp-upgrader.php

     
    14351435                        $install_actions['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>';
    14361436
    14371437                if ( is_multisite() && current_user_can( 'manage_network_plugins' ) ) {
    1438                         $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="' . esc_attr__('Activate this plugin for all sites in this network') . '" target="_parent">' . __('Network Activate') . '</a>';
     1438                        $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="' . esc_attr__('Activate this plugin for all sites in this network') . '" target="_parent">' . __('Activate this plugin for all sites in this network') . '</a>';
    14391439                        unset( $install_actions['activate_plugin'] );
    14401440                }
    14411441