WordPress.org

Make WordPress Core

Ticket #20983: 20983.1.diff

File 20983.1.diff, 2.3 KB (added by Ipstenu, 8 months ago)

De/Activate for all sites

  • 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' ) ) 
  • wp-admin/includes/class-wp-upgrader.php

     
    14591459                        $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>'; 
    14601460 
    14611461                if ( is_multisite() && current_user_can( 'manage_network_plugins' ) ) { 
    1462                         $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>'; 
     1462                        $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>'; 
    14631463                        unset( $install_actions['activate_plugin'] ); 
    14641464                } 
    14651465