[wp-trac] [WordPress Trac] #33775: comment_form() Leave a Reply heading level can't be changed

WordPress Trac noreply at wordpress.org
Mon Sep 7 22:39:38 UTC 2015


#33775: comment_form() Leave a Reply heading level can't be changed
---------------------------+-----------------------------
 Reporter:  afercia        |      Owner:
     Type:  defect (bug)   |     Status:  new
 Priority:  normal         |  Milestone:  Awaiting Review
Component:  Comments       |    Version:  4.3
 Severity:  normal         |   Keywords:
  Focuses:  accessibility  |
---------------------------+-----------------------------
 When using `comment_form()` to output the complete comment form, the
 "Leave a Reply" heading is assumed to be a `<h3>` and there's no way to
 change the heading level. See the screenshot below, it's the heading
 structure in Twenty Sixteen.
 - when there are comments: the headings hierarchy doesn't miss levels but
 I'd say the `<h3>` should be a `<h2>` anyways
 - when there are no comments yet, there's a missing heading level

 Assuming a `<h3>` will be always a correct heading level it's just... well
 an assumption. IMHO, functions that output HTML should always give the
 ability to filter the output or set the relevant part of the HTML using
 arguments.

 [[Image(https://cldup.com/fbN5cHtvmO.png)]]

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


More information about the wp-trac mailing list