Make WordPress Core

Ticket #27208: 27208.diff

File 27208.diff, 1.4 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
     27require_once( ABSPATH . WPINC . '/plugin.php' );
     28
    2629if ( file_exists( ABSPATH . 'wp-config.php') ) {
    2730
    2831        /** 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' );
     
    7273require( 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.