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/class-wp-customize.php

    r20802 r20809  
    214214
    215215        foreach ( $this->settings as $id => $setting ) {
    216             $settings['values'][ $id ] = $setting->value();
     216            $settings['values'][ $id ] = $setting->js_value();
    217217        }
    218218
Note: See TracChangeset for help on using the changeset viewer.