WordPress.org

Make WordPress Core

Opened 7 years ago

Closed 5 years ago

#4839 closed defect (bug) (fixed)

wp_update_comment doesn't call wp_set_comment_status action hook

Reported by: filosofo Owned by:
Milestone: Priority: normal
Severity: normal Version: 2.3
Component: General Keywords: wp_set_comment_status wp_update_comment has-patch
Focuses: Cc:

Description

wp_update_comment should call the wp_set_comment_status action hook when it changes the status, but it doesn't.

That means that if you change a comment's status using, for example, the template "edit" link created by edit_comment_link(), you won't call the wp_set_comment_status action hook.

The attached patch calls wp_set_comment_status only if there has been a change to the comment's status.

Attachments (1)

wp_set_comment_status.diff (592 bytes) - added by filosofo 7 years ago.

Download all attachments as: .zip

Change History (2)

comment:1 filosofo5 years ago

  • Milestone 2.9 deleted
  • Resolution set to fixed
  • Status changed from new to closed

Some other fix took care of this a while back.

Note: See TracTickets for help on using tickets.