Make WordPress Core

Ticket #27208: 27208.3.diff

File 27208.3.diff, 1.6 KB (added by Denis-de-Bernardy, 11 years ago)
  • wp-load.php

     
    2020
    2121/** Define ABSPATH as this file's directory */
    2222define( 'ABSPATH', dirname(__FILE__) . '/' );
     23define( 'WPINC', 'wp-includes' );
    2324
    2425error_reporting( E_CORE_ERROR | E_CORE_WARNING | E_COMPILE_ERROR | E_ERROR | E_WARNING | E_PARSE | E_USER_ERROR | E_USER_WARNING | E_RECOVERABLE_ERROR );
    2526
     27// Allow the use `add_filter()`, `__return_true()` and `__return_false()` in wp-config.php
     28require( ABSPATH . WPINC . '/functions.php' );
     29require( ABSPATH . WPINC . '/plugin.php' );
     30
    2631if ( file_exists( ABSPATH . 'wp-config.php') ) {
    2732
    2833        /** The config file resides in ABSPATH */
  • wp-settings.php

     
    1515 *
    1616 * @since 1.0.0
    1717 */
    18 define( 'WPINC', 'wp-includes' );
     18if (!defined( 'WPINC' ))
     19    define( 'WPINC', 'wp-includes' );
    1920
    2021// Include files required for initialization.
    2122require( ABSPATH . WPINC . '/load.php' );
     
    6970
    7071// Load early WordPress files.
    7172require( ABSPATH . WPINC . '/compat.php' );
    72 require( ABSPATH . WPINC . '/functions.php' );
     73require_once( ABSPATH . WPINC . '/functions.php' );
    7374require( ABSPATH . WPINC . '/class-wp.php' );
    7475require( ABSPATH . WPINC . '/class-wp-error.php' );
    75 require( ABSPATH . WPINC . '/plugin.php' );
     76require_once( ABSPATH . WPINC . '/plugin.php' );
    7677require( ABSPATH . WPINC . '/pomo/mo.php' );
    7778
    7879// Include the wpdb class and, if present, a db.php database drop-in.