From 98866f50321e9480b24760a8d384f81a2cf4aaec Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Fri, 9 Oct 2020 01:26:27 +0000 Subject: [PATCH] Docs: Correct description for `wp_set_comment_status` hook. The action fires immediately after transitioning a comment's status from one to another in the database and removing the comment from the object cache, but prior to all status transition hooks. Props davidbaumwald, henry.wright. Fixes #51481. git-svn-id: https://develop.svn.wordpress.org/trunk@49111 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-includes/comment.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/wp-includes/comment.php b/src/wp-includes/comment.php index 6b722529fc..cde13af806 100644 --- a/src/wp-includes/comment.php +++ b/src/wp-includes/comment.php @@ -2401,8 +2401,8 @@ function wp_set_comment_status( $comment_id, $comment_status, $wp_error = false $comment = get_comment( $comment_old->comment_ID ); /** - * Fires immediately before transitioning a comment's status from one to another - * in the database. + * Fires immediately after transitioning a comment's status from one to another in the database + * and removing the comment from the object cache, but prior to all status transition hooks. * * @since 1.5.0 *