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
This commit is contained in:
ryan 2009-04-20 20:35:31 +00:00
parent b692a1f322
commit e511111837
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();
}
/**