[wp-trac] [WordPress Trac] #36364: Change headings H3 to H2 of 'Leave a Reply’, comment_form().
WordPress Trac
noreply at wordpress.org
Tue Mar 29 07:32:42 UTC 2016
#36364: Change headings H3 to H2 of 'Leave a Reply’, comment_form().
-----------------------------+-----------------------------
Reporter: kassy000 | Owner:
Type: feature request | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Comments | Version: trunk
Severity: normal | Keywords:
Focuses: accessibility |
-----------------------------+-----------------------------
When I receiving the accessibility review of the theme I created,
the theme reviewer required change the heading up from H3 to H2 of 'Leave
a Reply’.
Here the comment of the theme reviewer.
> 5) Headings: Fail
>
> Move 'Leave a Reply' heading up to H2 and it passes.
https://themes.trac.wordpress.org/ticket/28202#comment:38
It’s seem to there are a code that able to change from H3 to H2 in
comment.php of the default theme,Twenty Sixteen.
But When activated other themes, It’s need to insert params to
comment.php,comment_form() manually.
Example:
{{{
comment_form( array(
'title_reply_before' => '<h2 id="reply-title"
class="comment-reply-title">',
'title_reply_after' => '</h2>',
) );
}}}
So,I make a suggestion change the code of ‘wp-include/comment-
templates.php’
line 2095 to 2097 of ‘wp-include/comment-templates.php’
{{{
* @type string $title_reply_before HTML displayed before the
comment form title.
* Default: '<h3 id="reply-title"
class="comment-reply-title">'.
* @type string $title_reply_after HTML displayed after the comment
form title.
* Default: '</h3>'.
}}}
Fixed code
{{{
* @type string $title_reply_before HTML displayed before the
comment form title.
* Default: '<h2 id="reply-title"
class="comment-reply-title">'.
* @type string $title_reply_after HTML displayed after the comment
form title.
* Default: '</h2>'.
}}}
line 2174 to 2175
{{{
'title_reply_before' => '<h3 id="reply-title" class="comment-reply-
title">',
'title_reply_after' => '</h3>',
}}}
Fixed code
{{{
'title_reply_before' => '<h2 id="reply-title" class="comment-reply-
title">',
'title_reply_after' => '</h2>',
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/36364>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list