Make WordPress Core

Changeset 15351


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

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

File:
1 edited

Legend:

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

    r15342 r15351  
    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.