Make WordPress Core

Ticket #20983: 20983.patch

File 20983.patch, 4.8 KB (added by ocean90, 11 years ago)
  • src/wp-admin/includes/class-wp-plugins-list-table.php

     
    237237                $actions = array();
    238238
    239239                if ( 'active' != $status )
    240                         $actions['activate-selected'] = $this->screen->in_admin( 'network' ) ? __( 'Network Activate' ) : __( 'Activate' );
     240                        $actions['activate-selected'] = $this->screen->in_admin( 'network' ) ? __( 'Activate for all sites' ) : __( 'Activate' );
    241241
    242242                if ( 'inactive' != $status && 'recent' != $status )
    243                         $actions['deactivate-selected'] = $this->screen->in_admin( 'network' ) ? __( 'Network Deactivate' ) : __( 'Deactivate' );
     243                        $actions['deactivate-selected'] = $this->screen->in_admin( 'network' ) ? __( 'Deactivate for all sites' ) : __( 'Deactivate' );
    244244
    245245                if ( !is_multisite() || $this->screen->in_admin( 'network' ) ) {
    246246                        if ( current_user_can( 'update_plugins' ) )
     
    339339                        if ( $screen->in_admin( 'network' ) ) {
    340340                                if ( $is_active ) {
    341341                                        if ( current_user_can( 'manage_network_plugins' ) )
    342                                                 $actions['deactivate'] = '<a href="' . wp_nonce_url('plugins.php?action=deactivate&amp;plugin=' . $plugin_file . '&amp;plugin_status=' . $context . '&amp;paged=' . $page . '&amp;s=' . $s, 'deactivate-plugin_' . $plugin_file) . '" title="' . esc_attr__('Deactivate this plugin') . '">' . __('Network Deactivate') . '</a>';
     342                                                $actions['deactivate'] = '<a href="' . wp_nonce_url('plugins.php?action=deactivate&amp;plugin=' . $plugin_file . '&amp;plugin_status=' . $context . '&amp;paged=' . $page . '&amp;s=' . $s, 'deactivate-plugin_' . $plugin_file) . '" title="' . esc_attr__('Deactivate this plugin') . '">' . __('Deactivate for all sites') . '</a>';
    343343                                } else {
    344344                                        if ( current_user_can( 'manage_network_plugins' ) )
    345                                                 $actions['activate'] = '<a href="' . wp_nonce_url('plugins.php?action=activate&amp;plugin=' . $plugin_file . '&amp;plugin_status=' . $context . '&amp;paged=' . $page . '&amp;s=' . $s, 'activate-plugin_' . $plugin_file) . '" title="' . esc_attr__('Activate this plugin for all sites in this network') . '" class="edit">' . __('Network Activate') . '</a>';
     345                                                $actions['activate'] = '<a href="' . wp_nonce_url('plugins.php?action=activate&amp;plugin=' . $plugin_file . '&amp;plugin_status=' . $context . '&amp;paged=' . $page . '&amp;s=' . $s, 'activate-plugin_' . $plugin_file) . '" title="' . esc_attr__('Activate this plugin for all sites in this network') . '" class="edit">' . __('Activate for all sites') . '</a>';
    346346                                        if ( current_user_can( 'delete_plugins' ) && ! is_plugin_active( $plugin_file ) )
    347347                                                $actions['delete'] = '<a href="' . wp_nonce_url('plugins.php?action=delete-selected&amp;checked[]=' . $plugin_file . '&amp;plugin_status=' . $context . '&amp;paged=' . $page . '&amp;s=' . $s, 'bulk-plugins') . '" title="' . esc_attr__('Delete this plugin') . '" class="delete">' . __('Delete') . '</a>';
    348348                                }
  • src/wp-admin/includes/class-wp-upgrader-skins.php

     
    371371                        $install_actions['activate_plugin'] = '<a href="' . wp_nonce_url('plugins.php?action=activate&amp;plugin=' . urlencode( $plugin_file ), 'activate-plugin_' . $plugin_file) . '" title="' . esc_attr__('Activate this plugin') . '" target="_parent">' . __('Activate Plugin') . '</a>';
    372372
    373373                if ( is_multisite() && current_user_can( 'manage_network_plugins' ) ) {
    374                         $install_actions['network_activate'] = '<a href="' . wp_nonce_url('plugins.php?action=activate&amp;networkwide=1&amp;plugin=' . urlencode( $plugin_file ), 'activate-plugin_' . $plugin_file) . '" title="' . esc_attr__('Activate this plugin for all sites in this network') . '" target="_parent">' . __('Network Activate') . '</a>';
     374                        $install_actions['network_activate'] = '<a href="' . wp_nonce_url('plugins.php?action=activate&amp;networkwide=1&amp;plugin=' . urlencode( $plugin_file ), 'activate-plugin_' . $plugin_file) . '" title="' . esc_attr__('Activate this plugin for all sites in this network') . '" target="_parent">' . __('Activate for all sites') . '</a>';
    375375                        unset( $install_actions['activate_plugin'] );
    376376                }
    377377
     
    531531/**
    532532 * Upgrader Skin for Automatic WordPress Upgrades
    533533 *
    534  * This skin is designed to be used when no output is intended, all output 
     534 * This skin is designed to be used when no output is intended, all output
    535535 * is captured and stored for the caller to process and log/email/discard.
    536536 *
    537537 * @package WordPress
     
    608608        function bulk_footer() {}
    609609        function before() {}
    610610        function after() {}
    611 }
    612  No newline at end of file
     611}