[wp-trac] [WordPress Trac] #57808: Correct duplicate hook reference for 'notify_moderator'

WordPress Trac noreply at wordpress.org
Sat Feb 25 20:57:02 UTC 2023


#57808: Correct duplicate hook reference for 'notify_moderator'
----------------------------+----------------------------------------
 Reporter:  SergeyBiryukov  |      Owner:  (none)
     Type:  defect (bug)    |     Status:  new
 Priority:  normal          |  Milestone:  Awaiting Review
Component:  Comments        |    Version:
 Severity:  normal          |   Keywords:  needs-patch good-first-bug
  Focuses:  docs            |
----------------------------+----------------------------------------
 Per the [https://developer.wordpress.org/coding-standards/inline-
 documentation-standards/php/#4-1-duplicate-hooks documentation standards],
 duplicate hook instances should be marked as such:
 {{{
 /** This filter is documented in path/to/filename.php */
 }}}

 The instance of the `notify_moderator` filter in
 `wp_new_comment_notify_moderator()` is marked with:
 {{{
 /** This filter is documented in wp-includes/comment.php */
 }}}

 However, the original filter location is `wp_notify_moderator()` in `wp-
 includes/pluggable.php`, so the reference in
 `wp_new_comment_notify_moderator()` should be corrected to:
 {{{
 /** This filter is documented in wp-includes/pluggable.php */
 }}}

 Follow-up to [35339], [35725].

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/57808>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list