Opened 4 months ago
#48519 new defect (bug)
Comment reply form in admin incompatible with most custom fields plugins
| Reported by: |
|
Owned by: | |
|---|---|---|---|
| Milestone: | Awaiting Review | Priority: | normal |
| Severity: | normal | Version: | 5.2.4 |
| Component: | Comments | Keywords: | needs-patch |
| Focuses: | administration | Cc: |
Description
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_fieldscomment_form_fieldscomment_form_logged_in(Not needed as it's in WP admin)comment_form_field_commentcomment_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_beforecomment_form_must_log_in_after(Not needed as it's in WP admin)comment_form_topcomment_form_logged_in_aftercomment_form_before_fieldscomment_form_after_fieldscomment_form
Note: See
TracTickets for help on using
tickets.