WordPress.org

Make WordPress Core

Ticket #15705: 15705.diff

File 15705.diff, 833 bytes (added by Denis-de-Bernardy, 7 years ago)
  • wp-settings.php

     
    1515 */
    1616define( 'WPINC', 'wp-includes' );
    1717
     18// Start an output buffer in case anything generates warnings or notices before cookies are sent.
     19ob_start();
     20
    1821// Include files required for initialization.
    1922require( ABSPATH . WPINC . '/load.php' );
    2023require( ABSPATH . WPINC . '/default-constants.php' );
     
    288291// Set up current user.
    289292$wp->init();
    290293
     294// Authentication cookies are now sent; safely release the output buffer started further up.
     295ob_end_flush();
     296
    291297/**
    292298 * Most of WP is loaded at this stage, and the user is authenticated. WP continues
    293299 * to load on the init hook that follows (e.g. widgets), and many plugins instantiate