[wp-trac] [WordPress Trac] #51481: Inline doc for `wp_set_comment_status` hook is wrong

WordPress Trac noreply at wordpress.org
Thu Oct 8 11:11:20 UTC 2020


#51481: Inline doc for `wp_set_comment_status` hook is wrong
--------------------------+-----------------------------
 Reporter:  henry.wright  |      Owner:  (none)
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  Awaiting Review
Component:  Comments      |    Version:
 Severity:  normal        |   Keywords:
  Focuses:                |
--------------------------+-----------------------------
 Taken from the `wp_set_comment_status()` function definition in
 comment.php

 {{{
 Fires immediately before transitioning a comment's status from one to
 another in the database.
 }}}

 This is wrong. The database update has already happened when the
 `wp_set_comment_status` hook is fired.

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


More information about the wp-trac mailing list