[wp-trac] [WordPress Trac] #48519: Comment reply form in admin incompatible with most custom fields plugins

WordPress Trac noreply at wordpress.org
Wed Nov 6 22:17:16 UTC 2019


#48519: Comment reply form in admin incompatible with most custom fields plugins
----------------------------+-----------------------------
 Reporter:  keraweb         |      Owner:  (none)
     Type:  defect (bug)    |     Status:  new
 Priority:  normal          |  Milestone:  Awaiting Review
Component:  Comments        |    Version:  5.2.4
 Severity:  normal          |   Keywords:  needs-patch
  Focuses:  administration  |
----------------------------+-----------------------------
 If you are using any plugin that adds custom (meta) fields to comments the
 admin interface for replying isn't compatible.

 The front-end comment template includes various hooks for plugins to use.
 The admin however does not (at all).

 See:
 Front-end: `wp-invludes/comment-template` function: `wp_comment_reply()`
 from around line 2393
 Admin: `wp-admin/includes/template.php` function `comment_form()` from
 around line 437

 In my case it's a compatibility bug with required fields created by Pods.
 Within WP Admin it won't show the custom fields and this doesn't save any
 comments because required fields are not filled.

 Some missing hooks:

 Filters:
 - `comment_form_default_fields`
 - `comment_form_fields`
 - `comment_form_logged_in` (Not needed as it's in WP admin)
 - `comment_form_field_comment`
 - `comment_form_field_{$name}`
 - `comment_form_submit_button` (Not sure if this is desirable in WP admin)
 - `comment_form_submit_field` (Not sure if this is desirable in WP admin)

 Actions:
 - `comment_form_before`
 - `comment_form_must_log_in_after` (Not needed as it's in WP admin)
 - `comment_form_top`
 - `comment_form_logged_in_after`
 - `comment_form_before_fields`
 - `comment_form_after_fields`
 - `comment_form`

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


More information about the wp-trac mailing list