mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-08-11 20:30:23 +00:00
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
This commit is contained in:
@@ -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 ) {
|
||||
|
||||
Reference in New Issue
Block a user