Ticket #15705: 15705.diff
| File 15705.diff, 833 bytes (added by , 15 years ago) |
|---|
-
wp-settings.php
15 15 */ 16 16 define( 'WPINC', 'wp-includes' ); 17 17 18 // Start an output buffer in case anything generates warnings or notices before cookies are sent. 19 ob_start(); 20 18 21 // Include files required for initialization. 19 22 require( ABSPATH . WPINC . '/load.php' ); 20 23 require( ABSPATH . WPINC . '/default-constants.php' ); … … 288 291 // Set up current user. 289 292 $wp->init(); 290 293 294 // Authentication cookies are now sent; safely release the output buffer started further up. 295 ob_end_flush(); 296 291 297 /** 292 298 * Most of WP is loaded at this stage, and the user is authenticated. WP continues 293 299 * to load on the init hook that follows (e.g. widgets), and many plugins instantiate