Ticket #27208: 27208.3.diff
File 27208.3.diff, 1.6 KB (added by , 11 years ago) |
---|
-
wp-load.php
20 20 21 21 /** Define ABSPATH as this file's directory */ 22 22 define( 'ABSPATH', dirname(__FILE__) . '/' ); 23 define( 'WPINC', 'wp-includes' ); 23 24 24 25 error_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 ); 25 26 27 // Allow the use `add_filter()`, `__return_true()` and `__return_false()` in wp-config.php 28 require( ABSPATH . WPINC . '/functions.php' ); 29 require( ABSPATH . WPINC . '/plugin.php' ); 30 26 31 if ( file_exists( ABSPATH . 'wp-config.php') ) { 27 32 28 33 /** The config file resides in ABSPATH */ -
wp-settings.php
15 15 * 16 16 * @since 1.0.0 17 17 */ 18 define( 'WPINC', 'wp-includes' ); 18 if (!defined( 'WPINC' )) 19 define( 'WPINC', 'wp-includes' ); 19 20 20 21 // Include files required for initialization. 21 22 require( ABSPATH . WPINC . '/load.php' ); … … 69 70 70 71 // Load early WordPress files. 71 72 require( ABSPATH . WPINC . '/compat.php' ); 72 require ( ABSPATH . WPINC . '/functions.php' );73 require_once( ABSPATH . WPINC . '/functions.php' ); 73 74 require( ABSPATH . WPINC . '/class-wp.php' ); 74 75 require( ABSPATH . WPINC . '/class-wp-error.php' ); 75 require ( ABSPATH . WPINC . '/plugin.php' );76 require_once( ABSPATH . WPINC . '/plugin.php' ); 76 77 require( ABSPATH . WPINC . '/pomo/mo.php' ); 77 78 78 79 // Include the wpdb class and, if present, a db.php database drop-in.