定制 Dashboard 中的 3 个 Feeds - Nicky's blog

July 13th, 2007

定制 Dashboard 中的 3 个 Feeds

Category: WordPress, Author: Nicky, Popularity: 8%

WordPress
从 WordPress 2.1 开始,Dashboard 中的 RSS 聚合采用了异步读取方式,加快了后台的打开速度。Dashboard 中的这三个 RSS 分别是 Technorati 反向链接、WordPress 开发 BlogWordPress Planet。这几个 RSS 我都在 Google Reader 中订阅了,不需要打开 WordPress 后台的时候看到,你可以修改为自己喜欢的内容,或者和我一样,把他们删除掉。现在要定制它们很简单,全部在 wp-admin/index-extra.php 文件中。

以下为 WordPress 2.2.1,其他版本应该在差不多的位置。

1、Technorati 反向链接,找到第 10 行:
$rss = @fetch_rss('http://feeds.technorati.com/cosmos/rss/?url='. trailingslashit(get_option('home')) .'&partner=wordpress');

2、WordPress 开发 Blog,找到第 27 行:
$rss = @fetch_rss('http://wordpress.org/development/feed/');

3、WordPress Planet,找到第 46 行:
$rss = @fetch_rss('http://planet.wordpress.org/feed/');

如果不想显示这些 Feeds,那么只需要在行首用 # 注释掉就可以了。

Tags:.
评论数量(4) | Add Comments
本文网址:http://www.osxcn.com/wordpress/custom-dashboard.html



4 Comments so far

» You can leave a response or Trackback .

  1. Gravatar Icon Verdana Says:

    Nicky 已经干掉了 Fanfou Tools? 呵呵~
    如果不再使用了,数据库中可能有些垃圾数据需要清理,不过也蛮简单的。

    删除 wp_fanfou 表,删除 options 表中 fanfou_ 打头的一些数据,还有 postmeta 表中也需要清理一些 fanfou_marker ;)

    RT

  2. Gravatar Icon 何必呢 Says:

    我是在wp-admin/index.php直接给干掉的

  3. Gravatar Icon onefly Says:

    WP最好自带这样的选项就好了。不然的话,每次升级WP后都要修改。

  4. Gravatar Icon awflasher Says:

    触动wp-admin,wp-include的东西,总是让我担心升级的麻烦。
    wp,还有很多工作可以做!

1 Trackbacks/Pingbacks

leave a reply