Changeset 23567 for trunk/wp-admin/network/site-settings.php
- Timestamp:
- 03/01/2013 05:14:09 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/network/site-settings.php
r23554 r23567 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 ); 56 58 if ( $key === 0 || is_array( $val ) || in_array($key, $skip_options) ) 57 59 continue; // Avoids "0 is a protected WP option and may not be modified" error when edit blog options 58 60 if ( $c == $count ) 59 update_option( $key, stripslashes( $val ));61 update_option( $key, $val ); 60 62 else 61 update_option( $key, stripslashes( $val ), false ); // no need to refresh blog details yet63 update_option( $key, $val, false ); // no need to refresh blog details yet 62 64 $c++; 63 65 }
Note: See TracChangeset
for help on using the changeset viewer.