mirror of
https://github.com/WordPress/WordPress.git
synced 2024-12-23 01:27:36 +01:00
Flush the cache in Recent Comments widget on edit_comment. props pento, fixes #24779.
Built from https://develop.svn.wordpress.org/trunk@25049 git-svn-id: http://core.svn.wordpress.org/trunk@25036 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
8156e29a98
commit
79fffba674
@ -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…
Reference in New Issue
Block a user