在4.0中wp-config-sample.php 包含
/** Absolute path to the WordPress directory. */
if ( !defined(\'ABSPATH\') )
define(\'ABSPATH\', dirname(__FILE__) . \'/\');
但是
ABSPATH 定义于
wp-load.php 包括之前
wp-config.php/** Define ABSPATH as this file\'s directory */
define( \'ABSPATH\', dirname(__FILE__) . \'/\' );
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 );
if ( file_exists( ABSPATH . \'wp-config.php\') ) {
/** The config file resides in ABSPATH */
require_once( ABSPATH . \'wp-config.php\' );
我想
wp-config-sample.php 与实际代码不同步,但我是否遗漏了某些内容,是否有其他方法可以覆盖
ABSPATH?