Flush the cache in Recent Comments widget on transition_comment_status, props josephscott, fixes #10427

git-svn-id: https://develop.svn.wordpress.org/trunk@11718 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Andrew Ozz 2009-07-16 22:31:22 +00:00
parent ba6403bb8c
commit 235c33b9fb
1 changed files with 1 additions and 1 deletions

View File

@ -609,7 +609,7 @@ class WP_Widget_Recent_Comments extends WP_Widget {
add_action( 'wp_head', array(&$this, 'recent_comments_style') );
add_action( 'comment_post', array(&$this, 'flush_widget_cache') );
add_action( 'wp_set_comment_status', array(&$this, 'flush_widget_cache') );
add_action( 'transition_comment_status', array(&$this, 'flush_widget_cache') );
}
function recent_comments_style() { ?>