From 235c33b9fbeb0ea1c2c99ee03204fd09e88a6e74 Mon Sep 17 00:00:00 2001 From: Andrew Ozz Date: Thu, 16 Jul 2009 22:31:22 +0000 Subject: [PATCH] Flush the cache in Recent Comments widget on transition_comment_status, props josephscott, fixes #10427 git-svn-id: https://develop.svn.wordpress.org/trunk@11718 602fd350-edb4-49c9-b593-d223f7449a82 --- wp-includes/default-widgets.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wp-includes/default-widgets.php b/wp-includes/default-widgets.php index 54d1d4012d..1b1cc3fbdb 100644 --- a/wp-includes/default-widgets.php +++ b/wp-includes/default-widgets.php @@ -609,7 +609,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( 'wp_set_comment_status', array(&$this, 'flush_widget_cache') ); + add_action( 'transition_comment_status', array(&$this, 'flush_widget_cache') ); } function recent_comments_style() { ?>