From 0202625937532881e325a159313a017d052f780a Mon Sep 17 00:00:00 2001 From: "Dominik Schilling (ocean90)" Date: Thu, 24 Apr 2014 19:47:09 +0000 Subject: [PATCH] Recent Posts Widget: Use `ob_end_flush()` instead of `ob_flush()`. `ob_end_flush()` flushes the output buffer *and* turns output buffering off, same as `ob_get_flush()`. props m_i_n. see #28009 for trunk. git-svn-id: https://develop.svn.wordpress.org/trunk@28195 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-includes/default-widgets.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/wp-includes/default-widgets.php b/src/wp-includes/default-widgets.php index 8a803a4770..97532c1eef 100644 --- a/src/wp-includes/default-widgets.php +++ b/src/wp-includes/default-widgets.php @@ -732,7 +732,7 @@ class WP_Widget_Recent_Posts extends WP_Widget { $cache[ $args['widget_id'] ] = ob_get_flush(); wp_cache_set( 'widget_recent_posts', $cache, 'widget' ); } else { - ob_flush(); + ob_end_flush(); } }