Make WordPress Core

Ticket #14120: 14120.diff

File 14120.diff, 746 bytes (added by wpmuguru, 15 years ago)
  • wp-admin/ms-edit.php

     
    220220                                        $allowedthemes[$theme] = true;
    221221                        }
    222222                }
     223
    223224                update_option( 'allowedthemes',  $allowedthemes );
    224225
    225226                // options
     
    227228                        $c = 1;
    228229                        $count = count( $_POST['option'] );
    229230                        foreach ( (array) $_POST['option'] as $key => $val ) {
    230                                 if ( $key === 0 || is_array( $val ) )
     231                                if ( $key === 0 || $key == 'allowedthemes' || is_array( $val ) )
    231232                                        continue; // Avoids "0 is a protected WP option and may not be modified" error when edit blog options
    232233                                if ( $c == $count )
    233234                                        update_option( $key, stripslashes( $val ) );