WordPress.org

Make WordPress Core

Opened 4 months ago

#48519 new defect (bug)

Comment reply form in admin incompatible with most custom fields plugins

Reported by: keraweb 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_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

Change History (0)

Note: See TracTickets for help on using tickets.