Make WordPress Core

Ticket #18301: 18301.diff

File 18301.diff, 1.2 KB (added by PeteMall, 13 years ago)

Activate themes form the network admin site-themes page.

  • wp-admin/includes/class-wp-ms-themes-list-table.php

     
    284284                else
    285285                        $actions['disable'] = '<a href="' . esc_url( wp_nonce_url($url . 'action=disable&amp;theme=' . $theme_key . '&amp;paged=' . $page . '&amp;s=' . $s, 'disable-theme_' . $theme_key) ) . '" title="' . esc_attr__('Disable this theme') . '">' . ( $this->is_site_themes ? __( 'Disable' ) : __( 'Network Disable' ) ) . '</a>';
    286286
     287                if ( $this->is_site_themes )
     288                        $actions['activate'] = '<a href="' . esc_url( wp_nonce_url( get_admin_url( $this->site_id, 'themes.php?action=activate&template=' . $theme['Template'] . '&amp;stylesheet=' . $theme_key ), 'switch-theme_' . $theme['Template'] ) ) . '" title="' . esc_attr__('Activate this theme') . '">' .  __( 'Activate' ) . '</a>';
     289
    287290                if ( current_user_can('edit_themes') )
    288291                        $actions['edit'] = '<a href="' . esc_url('theme-editor.php?theme=' . urlencode( $theme['Name'] )) . '" title="' . esc_attr__('Open this theme in the Theme Editor') . '" class="edit">' . __('Edit') . '</a>';
    289292