因應 WordPress 2.0 , 修改 Recent Comments .

2005 December 30

升級 2.0 以後, 我發現 Recent Comments 的選項頁面出不來. :???:

於是, 拜 估狗大神 所賜, 我找到了 這頁 .

我按照文章裡面的說明修改 wp-content/plugins/get-recent-comments.php , 在這行:
// WordPress 1.5 includes this file again on the options page. Avoid duplicate declaration:
下面有段:
if ( function_exists("is_plugin_page") && is_plugin_page() ) {
kjgrc_options_page();
return;
}

然後把整段整個換成
add_action('options_page_get-recent-comments', 'kjgrc_options_page' );
就好了. :cool:

Comments »

The URI to TrackBack this entry is: http://joehorn.blogsome.com/2005/12/30/%e5%9b%a0%e6%87%89-wordpress-20-%e4%bf%ae%e6%94%b9-recent-comments/trackback/

No comments yet.

RSS feed for comments on this post.

Leave a comment

Line and paragraph breaks automatic, e-mail address never displayed, HTML allowed: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <code> <em> <i> <strike> <strong>