Make WordPress Core


Ignore:
Timestamp:
06/29/2010 02:33:34 PM (14 years ago)
Author:
ryan
Message:

Don't process allowedthemes option when editing a site. Props wpmuguru. fixes #14120 for 3.0.1

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/3.0/wp-admin/ms-edit.php

    r15343 r15352  
    227227            $c = 1;
    228228            $count = count( $_POST['option'] );
     229            $skip_options = array( 'allowedthemes' ); // Don't update these options since they are handled elsewhere in the form.
    229230            foreach ( (array) $_POST['option'] as $key => $val ) {
    230                 if ( $key === 0 || is_array( $val ) )
     231                if ( $key === 0 || is_array( $val ) || in_array($key, $skip_options) )
    231232                    continue; // Avoids "0 is a protected WP option and may not be modified" error when edit blog options
    232233                if ( $c == $count )
Note: See TracChangeset for help on using the changeset viewer.