WordPress.org

Make WordPress Core


Ignore:
Timestamp:
05/16/2012 08:59:02 PM (9 years ago)
Author:
koopersmith
Message:

Theme Customizer: Properly escape customize settings when sending values to JS. Add WP_Customize_Setting->js_value(). fixes #20687, see #19910.

File:
1 edited

Legend:

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

    r20802 r20809  
    109109    foreach ( $this->settings as $id => $setting ) {
    110110        $settings['settings'][ $id ] = array(
    111             'value'     => $setting->value(),
     111            'value'     => $setting->js_value(),
    112112            'transport' => $setting->transport,
    113113        );
Note: See TracChangeset for help on using the changeset viewer.