mirror of
git://develop.git.wordpress.org/
synced 2025-01-17 21:08:44 +01:00
Flush the cache in Recent Comments widget on edit_comment. props pento, fixes #24779.
git-svn-id: https://develop.svn.wordpress.org/trunk@25049 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
c6e43f5327
commit
b308cdbd87
@ -643,6 +643,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( 'edit_comment', array($this, 'flush_widget_cache') );
|
||||
add_action( 'transition_comment_status', array($this, 'flush_widget_cache') );
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user