| 1 | Index: wp-settings.php |
|---|
| 2 | =================================================================== |
|---|
| 3 | --- wp-settings.php (revision 16754) |
|---|
| 4 | +++ wp-settings.php (working copy) |
|---|
| 5 | @@ -15,6 +15,9 @@ |
|---|
| 6 | */ |
|---|
| 7 | define( 'WPINC', 'wp-includes' ); |
|---|
| 8 | |
|---|
| 9 | +// Start an output buffer in case anything generates warnings or notices before cookies are sent. |
|---|
| 10 | +ob_start(); |
|---|
| 11 | + |
|---|
| 12 | // Include files required for initialization. |
|---|
| 13 | require( ABSPATH . WPINC . '/load.php' ); |
|---|
| 14 | require( ABSPATH . WPINC . '/default-constants.php' ); |
|---|
| 15 | @@ -288,6 +291,9 @@ |
|---|
| 16 | // Set up current user. |
|---|
| 17 | $wp->init(); |
|---|
| 18 | |
|---|
| 19 | +// Authentication cookies are now sent; safely release the output buffer started further up. |
|---|
| 20 | +ob_end_flush(); |
|---|
| 21 | + |
|---|
| 22 | /** |
|---|
| 23 | * Most of WP is loaded at this stage, and the user is authenticated. WP continues |
|---|
| 24 | * to load on the init hook that follows (e.g. widgets), and many plugins instantiate |
|---|