Changeset 15352 for branches/3.0/wp-admin/ms-edit.php
- Timestamp:
- 06/29/2010 02:33:34 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/3.0/wp-admin/ms-edit.php
r15343 r15352 227 227 $c = 1; 228 228 $count = count( $_POST['option'] ); 229 $skip_options = array( 'allowedthemes' ); // Don't update these options since they are handled elsewhere in the form. 229 230 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) ) 231 232 continue; // Avoids "0 is a protected WP option and may not be modified" error when edit blog options 232 233 if ( $c == $count )
Note: See TracChangeset
for help on using the changeset viewer.