WordPress.org

Make WordPress Core


Ignore:
Timestamp:
01/08/2019 06:18:17 AM (8 months ago)
Author:
pento
Message:

Comments: Improve the Author box in the Edit Comment screen.

  • Add a border below the heading, to match meta boxes.
  • Remove the colons from the input labels.
  • Tweak the padding and margins.

Props birgire, abdullahramzan, rhetorical, BODA1982, pento.
Fixes #43586.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/edit-form-comment.php

    r44214 r44466  
    4242<div class="inside">
    4343<fieldset>
    44 <legend class="edit-comment-author"><?php _e( 'Author' ); ?></legend>
     44<h2 class="edit-comment-author">
     45    <span><?php _e( 'Author' ); ?></span>
     46</h2>
    4547<table class="form-table editcomment">
    4648<tbody>
    4749<tr>
    48     <td class="first"><label for="name"><?php _e( 'Name:' ); ?></label></td>
     50    <td class="first"><label for="name"><?php _e( 'Name' ); ?></label></td>
    4951    <td><input type="text" name="newcomment_author" size="30" value="<?php echo esc_attr( $comment->comment_author ); ?>" id="name" /></td>
    5052</tr>
    5153<tr>
    52     <td class="first"><label for="email"><?php _e( 'Email:' ); ?></label></td>
     54    <td class="first"><label for="email"><?php _e( 'Email' ); ?></label></td>
    5355    <td>
    5456        <input type="text" name="newcomment_author_email" size="30" value="<?php echo $comment->comment_author_email; ?>" id="email" />
     
    5658</tr>
    5759<tr>
    58     <td class="first"><label for="newcomment_author_url"><?php _e( 'URL:' ); ?></label></td>
     60    <td class="first"><label for="newcomment_author_url"><?php _e( 'URL' ); ?></label></td>
    5961    <td>
    6062        <input type="text" id="newcomment_author_url" name="newcomment_author_url" size="30" class="code" value="<?php echo esc_attr( $comment->comment_author_url ); ?>" />
     
    6365</tbody>
    6466</table>
    65 <br />
    6667</fieldset>
    6768</div>
Note: See TracChangeset for help on using the changeset viewer.