Make WordPress Core

Opened 7 years ago

Last modified 7 years ago

#48480 new enhancement

Add comment_form_opening_tag and comment_form_closing_tag filters

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

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 (2)

#1 @SergeyBiryukov
7 years ago

  • Component GeneralComments
  • Type defect (bug)enhancement
Note: See TracTickets for help on using tickets.