Make WordPress Core

Changeset 55424


Ignore:
Timestamp:
02/25/2023 09:54:03 PM (20 months ago)
Author:
SergeyBiryukov
Message:

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.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/comment.php

    r55398 r55424  
    23432343    $maybe_notify = ( '0' == $comment->comment_approved );
    23442344
    2345     /** This filter is documented in wp-includes/comment.php */
     2345    /** This filter is documented in wp-includes/pluggable.php */
    23462346    $maybe_notify = apply_filters( 'notify_moderator', $maybe_notify, $comment_id );
    23472347
Note: See TracChangeset for help on using the changeset viewer.