From e5111118372f089f9e19b6aa3c5b8cb4a4452a3d Mon Sep 17 00:00:00 2001 From: ryan Date: Mon, 20 Apr 2009 20:35:31 +0000 Subject: [PATCH] Fix warning in wp_ob_end_flush_all(). Props richcon. fixes #5109 git-svn-id: http://svn.automattic.com/wordpress/trunk@11020 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/functions.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/wp-includes/functions.php b/wp-includes/functions.php index 2ed1791a48..86080d677d 100644 --- a/wp-includes/functions.php +++ b/wp-includes/functions.php @@ -2657,7 +2657,9 @@ function wp_widgets_add_menu() { * @since 2.2.0 */ function wp_ob_end_flush_all() { - while ( @ob_end_flush() ); + $levels = ob_get_level(); + for ($i=0; $i<$levels; $i++) + ob_end_flush(); } /**