Changeset 23554 for trunk/wp-admin/network/site-settings.php
- Timestamp:
- 03/01/2013 04:28:40 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/network/site-settings.php
r23416 r23554 54 54 $skip_options = array( 'allowedthemes' ); // Don't update these options since they are handled elsewhere in the form. 55 55 foreach ( (array) $_POST['option'] as $key => $val ) { 56 $key = wp_unslash( $key );57 $val = wp_unslash( $val );58 56 if ( $key === 0 || is_array( $val ) || in_array($key, $skip_options) ) 59 57 continue; // Avoids "0 is a protected WP option and may not be modified" error when edit blog options 60 58 if ( $c == $count ) 61 update_option( $key, $val);59 update_option( $key, stripslashes( $val ) ); 62 60 else 63 update_option( $key, $val, false ); // no need to refresh blog details yet61 update_option( $key, stripslashes( $val ), false ); // no need to refresh blog details yet 64 62 $c++; 65 63 }
Note: See TracChangeset
for help on using the changeset viewer.