Comments: Restore a removed fieldset legend after [44466].

In the Edit Comment page:
- moves the "Author" `h2` heading out of the form fieldset
- removes an unnecessary `<span>` element
- adds a visually hidden legend element to the fieldset
- uses an existing string "Comment Author"

Fixes #43586.

Built from https://develop.svn.wordpress.org/trunk@44712


git-svn-id: http://core.svn.wordpress.org/trunk@44543 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Andrea Fercia 2019-01-29 19:10:49 +00:00
parent 3c7a623f85
commit da75c0cdb6
2 changed files with 3 additions and 4 deletions

View File

@ -40,10 +40,9 @@ if ( 'approved' === wp_get_comment_status( $comment ) && $comment->comment_post_
<?php endif; ?>
<div id="namediv" class="stuffbox">
<div class="inside">
<h2 class="edit-comment-author"><?php _e( 'Author' ); ?></h2>
<fieldset>
<h2 class="edit-comment-author">
<span><?php _e( 'Author' ); ?></span>
</h2>
<legend class="screen-reader-text"><?php _e( 'Comment Author' ); ?></legend>
<table class="form-table editcomment">
<tbody>
<tr>

View File

@ -13,7 +13,7 @@
*
* @global string $wp_version
*/
$wp_version = '5.1-beta2-44711';
$wp_version = '5.1-beta2-44712';
/**
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.