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