Make WordPress Core


Ignore:
Timestamp:
11/19/2016 05:59:12 AM (10 years ago)
Author:
westonruter
Message:

Customize: Ensure WP_Customize_Setting::value() returns previewed value for custom types utilizing the customize_value_{$id_base} filter.

Fixes #38864.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/customize/class-wp-customize-custom-css-setting.php

    r39209 r39318  
    133133         */
    134134        public function value() {
     135                if ( $this->is_previewed ) {
     136                        $post_value = $this->post_value( null );
     137                        if ( null !== $post_value ) {
     138                                return $post_value;
     139                        }
     140                }
    135141                $id_base = $this->id_data['base'];
    136                 if ( $this->is_previewed && null !== $this->post_value( null ) ) {
    137                         return $this->post_value();
    138                 }
    139142                $value = '';
    140143                $post = wp_get_custom_css_post( $this->stylesheet );
Note: See TracChangeset for help on using the changeset viewer.