WordPress.org

Make WordPress Core

Ticket #13087: 13097.1.diff

File 13097.1.diff, 1.2 KB (added by ocean90, 4 years ago)

with title fix

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

     
    12141214                        '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>', 
    12151215                                                        ); 
    12161216 
     1217                if ( is_multisite() && current_user_can( 'manage_network_plugins' ) ) 
     1218                        $install_actions['network_activate'] = '<a href="' . wp_nonce_url('plugins.php?action=activate&amp;networkwide=1&amp;plugin=' . $plugin_file, 'activate-plugin_' . $plugin_file) . '&amp;plugin_status=' . '" title="' . __('Activate this plugin for all sites in this network') . '" target="_parent">' . __('Network Activate') . '</a>'; 
     1219 
    12171220                if ( $this->type == 'web' ) 
    12181221                        $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>'; 
    12191222                else