WordPress.org

Make WordPress Core

Changeset 5463


Ignore:
Timestamp:
05/12/2007 10:37:07 PM (13 years ago)
Author:
ryan
Message:

Flush all output buffers during shutdown to avoid PHP 5 bustage. fixes #3354 for 2.2

Location:
branches/2.2/wp-includes
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/2.2/wp-includes/default-filters.php

    r5363 r5463  
    174174add_action('mce_options', '_mce_set_direction');
    175175add_action('init', 'smilies_init', 5);
    176 
    177176add_action( 'plugins_loaded', 'wp_maybe_load_widgets', 0 );
     177add_action( 'shutdown', 'wp_ob_end_flush_all', 1);
    178178
    179179?>
  • branches/2.2/wp-includes/functions.php

    r5461 r5463  
    15121512}
    15131513
     1514// For PHP 5.2, make sure all output buffers are flushed
     1515// before our singletons our destroyed.
     1516function wp_ob_end_flush_all()
     1517{
     1518    while ( @ob_end_flush() );
     1519}
     1520
    15141521?>
Note: See TracChangeset for help on using the changeset viewer.