Fix warning in wp_ob_end_flush_all(). Props richcon. fixes #5109

git-svn-id: https://develop.svn.wordpress.org/trunk@11020 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Ryan Boren 2009-04-20 20:35:31 +00:00
parent 66ab91564b
commit 021a12edf6
1 changed files with 3 additions and 1 deletions

View File

@ -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();
}
/**