We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b87bd75 commit 6f6bc33Copy full SHA for 6f6bc33
src/wp-content/themes/twentyeleven/inc/widgets.php
@@ -56,7 +56,7 @@ function widget( $args, $instance ) {
56
if ( ! isset( $args['widget_id'] ) )
57
$args['widget_id'] = null;
58
59
- if ( isset( $cache[ $args['widget_id'] ] ) ) {
+ if ( ! is_customize_preview() && isset( $cache[ $args['widget_id'] ] ) ) {
60
echo $cache[ $args['widget_id'] ];
61
return;
62
}
@@ -132,7 +132,10 @@ function widget( $args, $instance ) {
132
endif;
133
134
$cache[ $args['widget_id'] ] = ob_get_flush();
135
- wp_cache_set( 'widget_twentyeleven_ephemera', $cache, 'widget' );
+ if ( ! is_customize_preview() ) {
136
+ wp_cache_set( 'widget_twentyeleven_ephemera', $cache, 'widget' );
137
+ }
138
+
139
140
141
/**
0 commit comments