Ticket #14120: 14120.diff
File 14120.diff, 746 bytes (added by , 15 years ago) |
---|
-
wp-admin/ms-edit.php
220 220 $allowedthemes[$theme] = true; 221 221 } 222 222 } 223 223 224 update_option( 'allowedthemes', $allowedthemes ); 224 225 225 226 // options … … 227 228 $c = 1; 228 229 $count = count( $_POST['option'] ); 229 230 foreach ( (array) $_POST['option'] as $key => $val ) { 230 if ( $key === 0 || is_array( $val ) )231 if ( $key === 0 || $key == 'allowedthemes' || is_array( $val ) ) 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 ) 233 234 update_option( $key, stripslashes( $val ) );