Make WordPress Core


Ignore:
Timestamp:
03/03/2013 04:30:38 PM (13 years ago)
Author:
ryan
Message:

Use wp_unslash() instead of stripslashes() and stripslashes_deep(). Use wp_slash() instead of add_magic_quotes().

see #WP21767

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/class-wp-customize-manager.php

    r23554 r23591  
    311311        if ( ! isset( $this->_post_values ) ) {
    312312            if ( isset( $_POST['customized'] ) )
    313                 $this->_post_values = json_decode( stripslashes( $_POST['customized'] ), true );
     313                $this->_post_values = json_decode( wp_unslash( $_POST['customized'] ), true );
    314314            else
    315315                $this->_post_values = false;
Note: See TracChangeset for help on using the changeset viewer.