Make WordPress Core

Ticket #21270: 21270.2.diff

File 21270.2.diff, 745 bytes (added by jeremyfelt, 13 years ago)
  • wp-admin/network/site-themes.php

     
    5858$is_main_site = is_main_site( $id );
    5959
    6060if ( $action ) {
    61         switch_to_blog( $id );
    62         $allowed_themes = get_option( 'allowedthemes' );
     61        $allowed_themes = get_blog_option( $id, 'allowedthemes' );
    6362
    6463        switch ( $action ) {
    6564                case 'enable':
     
    110109                        break;
    111110        }
    112111
    113         update_option( 'allowedthemes', $allowed_themes );
    114         restore_current_blog();
     112        update_blog_option( $id, 'allowedthemes', $allowed_themes );
    115113
    116114        wp_safe_redirect( add_query_arg( array( 'id' => $id, $action => $n ), $referer ) );
    117115        exit;