From 21d70052b6c0ce3f5b6c0c3fad9a0b42683ef814 Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Sat, 25 Feb 2023 21:54:03 +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. git-svn-id: https://develop.svn.wordpress.org/trunk@55424 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-includes/comment.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/wp-includes/comment.php b/src/wp-includes/comment.php index b1a1d46c4a..d269ff2d04 100644 --- a/src/wp-includes/comment.php +++ b/src/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 ) {