看来不止我一个人不喜欢WordPress新版本的这个新功能啊,对于我们这些仅仅记录点自己想要的东西的人来说,还真是没有什么用处。刚刚闲暇乱逛之时发现一个高人已经找到解决的方法了!
在 wp-config.php 添加的代码如下:
define(’WP_POST_REVISIONS’, false);
关于 WP_POST_REVISIONS 这个变量的详细设置为:
true(默认)或者 -1:保存所有修订版本
false 或者 0:不保存任何版本(除了自动保存的版本)
大于 0 的整数 n:保存 n 个修订版本(+1 只保存自动保存版本),旧的版本将被删除。
原文文章地址为:http://fairyfish.net/2008/07/15/disable-post-revision/
2008年8月17日 Update:批量删除之前的全部修订内容SQL命令
DELETE FROM wp_posts WHERE post_type = “revision”;
相关文章:
最近只顾着学做模板优化去了,忘记已经将Permalinks做了如下修改:
原地址:/%post_id%.html
新地址:/htm/%post_id%.htm
刚查看统计的时候发现很多朋友从旧地址进来,造成阅读上的不便,这里对不住了……
要解决的方法很多,比如插件啊啥的都好像可以;
不过我算是怕了WordPress的插件系统的,能不用还是不用吧,我就修改.htaccess文件试试:
RewriteRule ^([0-9]*).html$ http://jorwang.com/htm/$1.htm [L,R=301]
OK,大功告成。 
相关文章:
从WordPress 2.5开始WordPress已经是不需要插件原生支持默认支持Gravatars了的,
首先打开后台中Setting » Discussion中的相关设置;
对于旧主题支持WordPress的Gravatars也可以一步到位,把以下调用代码代码
<?php if(function_exists("get_avatar")) echo get_avatar( $comment, 32 ); ?>
插入到comments.php里的
<?php comment_author_link() ?>
附近即可。
Read the rest of this entry »
相关文章:
WordPress started in 2003 with a single bit of code to enhance the typography of everyday writing and with fewer users than you can count on your fingers and toes. Since then it has grown to be the largest self-hosted blogging tool in the world, used on hundreds of thousands of sites and seen by tens of millions of people every day.

2008.7.15 Update WordPress 2.6
相关文章: