wp配置中的配置。php应该放在靠近底部的注释上方,其内容如下:That\'s all, stop editing! Happy Publishing.
每Editing wp-config.php
wp config示例的内容。php文件的顺序非常明确。顺序很重要。如果您已经有wp配置。php文件,重新排列文件内容可能会在您的博客上产生错误。
下面是靠近底部的几行:
/* That\'s all, stop editing! Happy publishing. */
/** Absolute path to the WordPress directory. */
if ( ! defined( \'ABSPATH\' ) ) {
define( \'ABSPATH\', dirname( __FILE__ ) . \'/\' );
}
/** Sets up WordPress vars and included files. */
require_once( ABSPATH . \'wp-settings.php\' );
我在这些行的上方添加了自己的配置:
define( \'WP_CRON_LOCK_TIMEOUT\', 120 );
define( \'AUTOSAVE_INTERVAL\', 300 );
define( \'WP_POST_REVISIONS\', 5 );
define( \'EMPTY_TRASH_DAYS\', 7 );
define( \'WP_AUTO_UPDATE_CORE\', true );
/* That\'s all, stop editing! Happy publishing. */
/** Absolute path to the WordPress directory. */
if ( ! defined( \'ABSPATH\' ) ) {
define( \'ABSPATH\', dirname( __FILE__ ) . \'/\' );
}
/** Sets up WordPress vars and included files. */
require_once( ABSPATH . \'wp-settings.php\' );
相应地添加配置,这些注意事项应该得到解决。