mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-07-05 09:40:13 +00:00
Flush all output buffers during shutdown to avoid PHP 5 bustage. see #3354
git-svn-id: https://develop.svn.wordpress.org/trunk@5462 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -1530,4 +1530,11 @@ function wp_widgets_add_menu() {
|
||||
ksort($submenu['themes.php'], SORT_NUMERIC);
|
||||
}
|
||||
|
||||
// For PHP 5.2, make sure all output buffers are flushed
|
||||
// before our singletons our destroyed.
|
||||
function wp_ob_end_flush_all()
|
||||
{
|
||||
while ( @ob_end_flush() );
|
||||
}
|
||||
|
||||
?>
|
||||
Reference in New Issue
Block a user