WordPress.org

Make WordPress Core

Opened 2 weeks ago

Last modified 2 weeks ago

#48480 new enhancement

Add comment_form_opening_tag and comment_form_closing_tag filters

Reported by: powerbuoy Owned by:
Milestone: Awaiting Review Priority: normal
Severity: normal Version:
Component: Comments Keywords:
Focuses: Cc:
PR Number:

Description

I'd like to be able to customize the div#respond.comment-respond wrapper around the comment form and replace it with a suitable HTML5 element, but it seems to be one of the few things one _can't_ change within the form.

Therefore I'd like to suggest two filters added to comment-template.php:2451:

apply_filters( 'comment_form_opening_tag', '<div id="respond" class="comment-respond">' );

And comment-template.php:2643:

apply_filters( 'comment_form_closing_tag', '</div>' );

Change History (1)

#1 @SergeyBiryukov
2 weeks ago

  • Component changed from General to Comments
  • Type changed from defect (bug) to enhancement
Note: See TracTickets for help on using tickets.