Make WordPress Core


Ignore:
Timestamp:
03/01/2013 04:28:40 PM (14 years ago)
Author:
ryan
Message:

Revert 23416, 23419, 23445 except for wp_reset_vars() changes. We are going a different direction with the slashing cleanup, so resetting to a clean slate. see #21767

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/network/site-settings.php

    r23416 r23554  
    5454        $skip_options = array( 'allowedthemes' ); // Don't update these options since they are handled elsewhere in the form.
    5555        foreach ( (array) $_POST['option'] as $key => $val ) {
    56                 $key = wp_unslash( $key );
    57                 $val = wp_unslash( $val );
    5856                if ( $key === 0 || is_array( $val ) || in_array($key, $skip_options) )
    5957                        continue; // Avoids "0 is a protected WP option and may not be modified" error when edit blog options
    6058                if ( $c == $count )
    61                         update_option( $key, $val );
     59                        update_option( $key, stripslashes( $val ) );
    6260                else
    63                         update_option( $key, $val, false ); // no need to refresh blog details yet
     61                        update_option( $key, stripslashes( $val ), false ); // no need to refresh blog details yet
    6462                $c++;
    6563        }
Note: See TracChangeset for help on using the changeset viewer.