Make WordPress Core


Ignore:
Timestamp:
12/02/2010 11:49:18 PM (14 years ago)
Author:
PeteMall
Message:

s/Enable/Network Enable for net admin themes. Fixes #14897

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/includes/class-wp-ms-themes-list-table.php

    r16696 r16700  
    233233        $actions = array();
    234234        if ( 'enabled' != $status )
    235             $actions['enable-selected'] = __( 'Enable' );
     235            $actions['enable-selected'] = $this->is_site_themes ? __( 'Enable' ) : __( 'Network Enable' );
    236236        if ( 'disabled' != $status )
    237             $actions['disable-selected'] = __( 'Disable' );
     237            $actions['disable-selected'] = $this->is_site_themes ? __( 'Disable' ) : __( 'Network Disable' );
    238238        if ( current_user_can( 'update_themes' ) && !$this->is_site_themes )
    239239            $actions['update-selected'] = __( 'Update' );
     
    276276
    277277        if ( empty( $theme['enabled'] ) )
    278             $actions['enable'] = '<a href="' . wp_nonce_url($url . 'action=enable&amp;theme=' . $theme_key . '&amp;paged=' . $page . '&amp;s=' . $s, 'enable-theme_' . $theme_key) . '" title="' . __('Enable this theme') . '" class="edit">' . __('Enable') . '</a>';
     278            $actions['enable'] = '<a href="' . wp_nonce_url($url . 'action=enable&amp;theme=' . $theme_key . '&amp;paged=' . $page . '&amp;s=' . $s, 'enable-theme_' . $theme_key) . '" title="' . __('Enable this theme') . '" class="edit">' . ( $this->is_site_themes ? __( 'Enable' ) : __( 'Network Enable' ) ) . '</a>';
    279279        else
    280             $actions['disable'] = '<a href="' . wp_nonce_url($url . 'action=disable&amp;theme=' . $theme_key . '&amp;paged=' . $page . '&amp;s=' . $s, 'disable-theme_' . $theme_key) . '" title="' . __('Disable this theme') . '">' . __('Disable') . '</a>';
     280            $actions['disable'] = '<a href="' . wp_nonce_url($url . 'action=disable&amp;theme=' . $theme_key . '&amp;paged=' . $page . '&amp;s=' . $s, 'disable-theme_' . $theme_key) . '" title="' . __('Disable this theme') . '">' . ( $this->is_site_themes ? __( 'Disable' ) : __( 'Network Disable' ) ) . '</a>';
    281281
    282282        if ( current_user_can('edit_themes') )
Note: See TracChangeset for help on using the changeset viewer.