Ticket #3354: shutdown.diff
File shutdown.diff, 996 bytes (added by , 18 years ago) |
---|
-
wp-includes/default-filters.php
173 173 add_action('admin_print_scripts', 'wp_print_scripts', 20); 174 174 add_action('mce_options', '_mce_set_direction'); 175 175 add_action('init', 'smilies_init', 5); 176 177 176 add_action( 'plugins_loaded', 'wp_maybe_load_widgets', 0 ); 177 add_action( 'shutdown', 'wp_ob_end_flush_all', 1); 178 178 179 179 ?> 180 No newline at end of file -
wp-includes/functions.php
1525 1525 ksort($submenu['themes.php'], SORT_NUMERIC); 1526 1526 } 1527 1527 1528 // For PHP 5.2, make sure all output buffers are flushed 1529 // before our singletons our destroyed. 1530 function wp_ob_end_flush_all() 1531 { 1532 while ( @ob_end_flush() ); 1533 } 1534 1528 1535 ?> 1536 No newline at end of file