Make WordPress Core

Changeset 16117


Ignore:
Timestamp:
10/31/2010 11:38:04 AM (16 years ago)
Author:
scribu
Message:

remove redundant 'Network ' prefix from action names and redundant display_tablenav() method. See #14897

File:
1 edited

Legend:

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

    r16113 r16117  
    162162        }
    163163
    164         function display_tablenav( $which ) {
    165                 global $status;
    166 
    167                 parent::display_tablenav( $which );
    168         }
    169 
    170164        function get_views() {
    171165                global $totals, $status;
    … …  
    209203                $actions = array();
    210204                if ( 'enabled' != $status )
    211                         $actions['network-enable-selected'] = __( 'Network Enable' );
     205                        $actions['network-enable-selected'] = __( 'Enable' );
    212206                if ( 'disabled' != $status )
    213                         $actions['network-disable-selected'] = __( 'Network Disable' );
     207                        $actions['network-disable-selected'] = __( 'Disable' );
    214208                if ( current_user_can( 'update_themes' ) )
    215209                        $actions['update-selected'] = __( 'Update' );
    … …  
    244238                        if ( empty( $theme['enabled'] ) ) {
    245239                                if ( current_user_can( 'manage_network_themes' ) )
    246                                         $actions['network_enable'] = '<a href="' . wp_nonce_url('themes.php?action=network-enable&amp;theme=' . $theme_key . '&amp;paged=' . $page . '&amp;s=' . $s, 'enable-theme_' . $theme_key) . '" title="' . __('Enable this theme for all sites in this network') . '" class="edit">' . __('Network Enable') . '</a>';
     240                                        $actions['network_enable'] = '<a href="' . wp_nonce_url('themes.php?action=network-enable&amp;theme=' . $theme_key . '&amp;paged=' . $page . '&amp;s=' . $s, 'enable-theme_' . $theme_key) . '" title="' . __('Enable this theme for all sites in this network') . '" class="edit">' . __('Enable') . '</a>';
    247241                        } else {
    248242                                if ( current_user_can( 'manage_network_themes' ) )
    249                                         $actions['network_disable'] = '<a href="' . wp_nonce_url('themes.php?action=network-disable&amp;theme=' . $theme_key . '&amp;paged=' . $page . '&amp;s=' . $s, 'disable-theme_' . $theme_key) . '" title="' . __('Disable this theme') . '">' . __('Network Disable') . '</a>';
     243                                        $actions['network_disable'] = '<a href="' . wp_nonce_url('themes.php?action=network-disable&amp;theme=' . $theme_key . '&amp;paged=' . $page . '&amp;s=' . $s, 'disable-theme_' . $theme_key) . '" title="' . __('Disable this theme') . '">' . __('Disable') . '</a>';
    250244                        }
    251245                       
Note: See TracChangeset for help on using the changeset viewer.