From 4419f9b889685867ab2427d06b1247588af4e29e Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Fri, 9 Oct 2020 01:28:04 +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. Built from https://develop.svn.wordpress.org/trunk@49111 git-svn-id: http://core.svn.wordpress.org/trunk@48873 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/comment.php | 4 ++-- wp-includes/version.php | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/wp-includes/comment.php b/wp-includes/comment.php index 6b722529fc..cde13af806 100644 --- a/wp-includes/comment.php +++ b/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 * diff --git a/wp-includes/version.php b/wp-includes/version.php index a56ffa81a3..9108bd0402 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -13,7 +13,7 @@ * * @global string $wp_version */ -$wp_version = '5.6-alpha-49110'; +$wp_version = '5.6-alpha-49111'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.