Flush the cache in Recent Comments widget on transition_comment_status, props josephscott, fixes #10427
git-svn-id: http://svn.automattic.com/wordpress/trunk@11718 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
e67872f12e
commit
80c6f0727e
|
@ -609,7 +609,7 @@ class WP_Widget_Recent_Comments extends WP_Widget {
|
||||||
add_action( 'wp_head', array(&$this, 'recent_comments_style') );
|
add_action( 'wp_head', array(&$this, 'recent_comments_style') );
|
||||||
|
|
||||||
add_action( 'comment_post', array(&$this, 'flush_widget_cache') );
|
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() { ?>
|
function recent_comments_style() { ?>
|
||||||
|
|
Loading…
Reference in New Issue