Make WordPress Core

Opened 6 years ago

Closed 20 months ago

#5741 closed enhancement (duplicate)

No Edit Comment Form Hook

Reported by: DavidMeade Owned by: westi
Milestone: Priority: normal
Severity: normal Version:
Component: Administration Keywords:
Focuses: Cc:


Hooks are provided to allow plugins to add custom fields to comment forms, however there is no hook to allow plugins to give admins to ability to adjust any such fields in the comment edit form.

To fix this, I added the following at line 51 of wp-admin/edit-form-comment.php (just above the advanced area of the form)

<?php do_action('edit_comment_form', $comment->comment_ID); ?>

Attachments (3)

edit-form-comment.php (4.1 KB) - added by DavidMeade 6 years ago.
patched file
5741.r6772.diff (360 bytes) - added by hansengel 6 years ago.
patch-ified #5741
5741.diff (623 bytes) - added by scohoust 5 years ago.

Download all attachments as: .zip

Change History (12)

comment:1 DavidMeade6 years ago

  • Milestone changed from 2.6 to 2.3.3

comment:2 lloydbudd6 years ago

  • Milestone changed from 2.3.3 to 2.6

DavidMeade, please leave updating the milestone to a core contributor. Please also attach a patch.

DavidMeade6 years ago

patched file

comment:3 DavidMeade6 years ago

ok I uploaded the changed version of wp-admin/edit-form-comment.php

Sorry about the milestone .. it was a field I was presented with to select a value for so I thought I was supposed to select a value :-P

hansengel6 years ago

patch-ified #5741

comment:4 Denis-de-Bernardy5 years ago

  • Component changed from Administration to Themes
  • Keywords close added
  • Milestone changed from 2.9 to Future Release
  • Type changed from defect (bug) to enhancement

comment:5 caesarsgrunt5 years ago

  • Component changed from Themes to Administration

This isn't to do with themes, this is for plugins to modify the admin comment editing form.

comment:6 scohoust5 years ago

Patch refresh, not sure how many plugins would benefit from this.

scohoust5 years ago

comment:7 westi5 years ago

  • Owner changed from anonymous to westi
  • Status changed from new to reviewing

This looks like a reasonable idea.

Could you possible knock together a proof-of-concept plugin.

i.e. one that adds an extra field to the comment form, processes it and displays it here

This is to make sure we are not missing any other necessary hooks

Thanks :-)

comment:8 bbeoj3 years ago

  • Cc bbeoj added

I think this is made obsolete by #13017 ??

comment:9 ocean9020 months ago

  • Keywords close removed
  • Milestone Future Release deleted
  • Resolution set to duplicate
  • Status changed from reviewing to closed
Note: See TracTickets for help on using tickets.