关于 WP 2.2 中新增加的变量
Published on
May 16, 2007
@ 8:13 pm
上次说 WP 2.2 的时候提到过 2.2 中,在 wp-config.php 中新增两个变量可以设定你的 blog 的地址,同时让 options 中的选项不起作用,我在 2.2 正式版中试用了一下,发现果然如此,我在 wp-config.php 中作如下设置:
define('WP_HOME', 'http://bemike.org');
define('WP_SITEURL', 'http://bemike.org');
看下图:

看来 Wordpress 想的挺周到,如果你设置了 wp-config.php 中的变量,系统自动把 options 中相应部分变成不可改动了。
2 Comment(s)
dupola
May 17th, 2007 at 8:10 pm
你blog在宽屏下真漂亮。
Michael (Blog Owner)
May 17th, 2007 at 9:01 pm
@dupola: Thanks man! :twisted:
1 Pingback/Trackback(s)
BloggingPro China » 关于 WP 2.2 中新增加的变量
May 17th, 2007 at 10:32 am
1[...] 关于 WP 2.2 中新增加的变量,2.2为wp-config.php中增加了两个关于迁移站点的变量"WP_HOME"和"WP_SITEURL",在wp-config.php中设定后系统会优先处理这两个变量,不用每次迁移站点都跑到数据库里修改了。 [...]
RSS feed for comments on this post · TrackBack URI
Leave a reply