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:
Dominik Schilling 2013-08-17 09:30:09 +00:00
parent 8156e29a98
commit 79fffba674

View File

@ -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') );
}