WordPress.org

Make WordPress Core

Changeset 16120


Ignore:
Timestamp:
10/31/2010 06:20:09 PM (9 years ago)
Author:
nacin
Message:

Remove old ajax handler. props PeteMall, see #14897.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/network/edit.php

    r16061 r16120  
    301301    break;
    302302
    303     // Themes
    304     case 'updatethemes':
    305     if ( ! current_user_can( 'manage_network_themes' ) )
    306         wp_die( __( 'You do not have permission to access this page.' ) );
    307 
    308         if ( is_array( $_POST['theme'] ) ) {
    309             $themes = get_themes();
    310             reset( $themes );
    311             $allowed_themes = array();
    312             foreach ( (array) $themes as $key => $theme ) {
    313                 if ( $_POST['theme'][ esc_html( $theme['Stylesheet'] ) ] == 'enabled' )
    314                     $allowed_themes[ esc_html( $theme['Stylesheet'] ) ] = true;
    315             }
    316             update_site_option( 'allowedthemes', $allowed_themes );
    317         }
    318         wp_redirect( add_query_arg( array( 'updated' => 'true', 'action' => 'themes' ),  wp_get_referer() ) );
    319         exit();
    320     break;
    321 
    322303    // Common
    323304    case 'confirm':
Note: See TracChangeset for help on using the changeset viewer.