Make WordPress Core

Ticket #36429: 36429.patch

File 36429.patch, 702 bytes (added by anneschmidt, 9 years ago)
  • widgets.php

     
    5656                if ( ! isset( $args['widget_id'] ) )
    5757                        $args['widget_id'] = null;
    5858
    59                 if ( isset( $cache[ $args['widget_id'] ] ) ) {
     59                if ( ! is_customize_preview() && isset( $cache[ $args['widget_id'] ] ) ) {
    6060                        echo $cache[ $args['widget_id'] ];
    6161                        return;
    6262                }
     
    132132                endif;
    133133
    134134                $cache[ $args['widget_id'] ] = ob_get_flush();
    135                 wp_cache_set( 'widget_twentyeleven_ephemera', $cache, 'widget' );
     135                if ( ! is_customize_preview() ) {
     136                        wp_cache_set( 'widget_twentyeleven_ephemera', $cache, 'widget' );
     137                        }
    136138        }
    137139
    138140        /**