WordPress.org

Make WordPress Core

Opened 4 years ago

Closed 4 years ago

#25521 closed defect (bug) (fixed)

Hook Docs: wp-admin/edit-form-comment.php

Reported by: rzen Owned by: DrewAPicture
Milestone: 3.8 Priority: normal
Severity: normal Version:
Component: Inline Docs Keywords: has-patch commit
Focuses: Cc:

Description

Only one original hook in this file: add_meta_boxes_comment. Two duplicates: add_meta_boxes and get_comment_author_link.

My short description feels a bit incorrect to me, "Fires before comment-specific meta boxes are displayed." because the previous hook could technically be used to display comment-specific metaboxes due to the 'comment' param that it passes. I couldn't think of a description that was obviously better, though.

Attachments (2)

edit-form-comment.diff (1.2 KB) - added by rzen 4 years ago.
25521.diff (1.3 KB) - added by DrewAPicture 4 years ago.
fix duplicate comments, other wording

Download all attachments as: .zip

Change History (5)

#1 @kpdesign
4 years ago

  • Type changed from enhancement to defect (bug)
  • Version 3.0 deleted

@DrewAPicture
4 years ago

fix duplicate comments, other wording

#2 @DrewAPicture
4 years ago

  • Keywords commit added
  • Milestone changed from Awaiting Review to 3.8

25521.diff should work. "Fires when comment-specific meta boxes are added."

#3 @DrewAPicture
4 years ago

  • Owner set to DrewAPicture
  • Resolution set to fixed
  • Status changed from new to closed

In 25983:

Inline documentation for hooks in wp-admin/edit-form-comment.php.

Props rzen.
Fixes #25521.

Note: See TracTickets for help on using tickets.