From b308cdbd877cc169c2bc3d37857e8ebdc25920a3 Mon Sep 17 00:00:00 2001 From: "Dominik Schilling (ocean90)" Date: Sat, 17 Aug 2013 09:29:52 +0000 Subject: [PATCH] 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 --- src/wp-includes/default-widgets.php | 1 + 1 file changed, 1 insertion(+) diff --git a/src/wp-includes/default-widgets.php b/src/wp-includes/default-widgets.php index 09d5811f1c..7c3b66a54f 100644 --- a/src/wp-includes/default-widgets.php +++ b/src/wp-includes/default-widgets.php @@ -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') ); }