From 325a14a3efad7277c0f47c8d05ecda5f835e2212 Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Sat, 25 Feb 2023 21:56:21 +0000 Subject: [PATCH] Docs: Correct duplicate hook reference for `notify_moderator`. The original filter location is `wp_notify_moderator()` in `wp-includes/pluggable.php`. This commit updates the instance in `wp_new_comment_notify_moderator()` to point to the correct file. Follow-up to [35339], [35725]. Props zevilz. Fixes #57808. Built from https://develop.svn.wordpress.org/trunk@55424 git-svn-id: http://core.svn.wordpress.org/trunk@54957 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/comment.php | 2 +- wp-includes/version.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/wp-includes/comment.php b/wp-includes/comment.php index b1a1d46c4a..d269ff2d04 100644 --- a/wp-includes/comment.php +++ b/wp-includes/comment.php @@ -2342,7 +2342,7 @@ function wp_new_comment_notify_moderator( $comment_id ) { // Only send notifications for pending comments. $maybe_notify = ( '0' == $comment->comment_approved ); - /** This filter is documented in wp-includes/comment.php */ + /** This filter is documented in wp-includes/pluggable.php */ $maybe_notify = apply_filters( 'notify_moderator', $maybe_notify, $comment_id ); if ( ! $maybe_notify ) { diff --git a/wp-includes/version.php b/wp-includes/version.php index e0dfc0e382..fcfe30fd98 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -16,7 +16,7 @@ * * @global string $wp_version */ -$wp_version = '6.2-beta3-55423'; +$wp_version = '6.2-beta3-55424'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.