Ticket #27565: default-widgets.patch
File default-widgets.patch, 755 bytes (added by , 11 years ago) |
---|
-
wp-includes/default-widgets.php
543 543 } 544 544 545 545 function widget($args, $instance) { 546 $cache = wp_cache_get('widget_recent_posts', 'widget'); 546 $cache_key = 'widget_recent_posts_' . ( is_ssl() ? 'https' : 'http' ); 547 $cache = wp_cache_get( $cache_key, 'widget' ); 547 548 548 549 if ( !is_array($cache) ) 549 550 $cache = array(); … … 589 590 endif; 590 591 591 592 $cache[$args['widget_id']] = ob_get_flush(); 592 wp_cache_set( 'widget_recent_posts', $cache, 'widget');593 wp_cache_set( $cache_key, $cache, 'widget' ); 593 594 } 594 595 595 596 function update( $new_instance, $old_instance ) {