Make WordPress Core

Opened 17 years ago

Closed 13 years ago

#5741 closed enhancement (duplicate)

No Edit Comment Form Hook

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

Description

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 17 years ago.
patched file
5741.r6772.diff (360 bytes) - added by hansengel 17 years ago.
patch-ified #5741
5741.diff (623 bytes) - added by scohoust 16 years ago.

Download all attachments as: .zip

Change History (12)

#1 @DavidMeade
17 years ago

  • Milestone changed from 2.6 to 2.3.3

#2 @lloydbudd
17 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.

@DavidMeade
17 years ago

patched file

#3 @DavidMeade
17 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

@hansengel
17 years ago

patch-ified #5741

#4 @Denis-de-Bernardy
16 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

#5 @caesarsgrunt
16 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.

#6 @scohoust
16 years ago

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

@scohoust
16 years ago

#7 @westi
16 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 :-)

#8 @bbeoj
15 years ago

  • Cc bbeoj added

I think this is made obsolete by #13017 ??

#9 @ocean90
13 years 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.