mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-08-11 20:30:23 +00:00
Customize: Ensure WP_Customize_Setting::value() returns previewed value for custom types utilizing the customize_value_{$id_base} filter.
Fixes #38864. git-svn-id: https://develop.svn.wordpress.org/trunk@39318 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -132,10 +132,13 @@ final class WP_Customize_Custom_CSS_Setting extends WP_Customize_Setting {
|
||||
* @return string
|
||||
*/
|
||||
public function value() {
|
||||
$id_base = $this->id_data['base'];
|
||||
if ( $this->is_previewed && null !== $this->post_value( null ) ) {
|
||||
return $this->post_value();
|
||||
if ( $this->is_previewed ) {
|
||||
$post_value = $this->post_value( null );
|
||||
if ( null !== $post_value ) {
|
||||
return $post_value;
|
||||
}
|
||||
}
|
||||
$id_base = $this->id_data['base'];
|
||||
$value = '';
|
||||
$post = wp_get_custom_css_post( $this->stylesheet );
|
||||
if ( $post ) {
|
||||
|
||||
Reference in New Issue
Block a user