Make WordPress Core


Ignore:
Timestamp:
05/04/2008 10:37:06 AM (17 years ago)
Author:
westi
Message:

Associate lables with form fields. Fixes #6859 props MarcoZ.

File:
1 edited

Legend:

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

    r7755 r7883  
    2323<div class="inside">
    2424
    25 <p><strong><?php _e('Approval Status') ?></strong></p>
     25<p><strong><label for='comment_status'><?php _e('Approval Status') ?></label></strong></p>
    2626<p>
    27 <select name='comment_status'>
     27<select name='comment_status' id='comment_status'>
    2828<option<?php selected( $comment->comment_approved, '1' ); ?> value='1'><?php _e('Approved') ?></option>
    2929<option<?php selected( $comment->comment_approved, '0' ); ?> value='0'><?php _e('Moderated') ?></option>
     
    6565<div id="post-body">
    6666<div id="namediv" class="stuffbox">
    67 <h3><?php _e('Name') ?></h3>
     67<h3><label for="name"><?php _e('Name') ?></label></h3>
    6868<div class="inside">
    6969<input type="text" name="newcomment_author" size="30" value="<?php echo attribute_escape( $comment->comment_author ); ?>" tabindex="1" id="name" />
     
    7272
    7373<div id="emaildiv" class="stuffbox">
    74 <h3><?php _e('E-mail') ?></h3>
     74<h3><label for="email"><?php _e('E-mail') ?></label></h3>
    7575<div class="inside">
    7676<input type="text" name="newcomment_author_email" size="30" value="<?php echo attribute_escape( $comment->comment_author_email ); ?>" tabindex="2" id="email" />
     
    7979
    8080<div id="uridiv" class="stuffbox">
    81 <h3><?php _e('URL') ?></h3>
     81<h3><label for="newcomment_author_url"><?php _e('URL') ?></label></h3>
    8282<div class="inside">
    8383<input type="text" id="newcomment_author_url" name="newcomment_author_url" size="30" value="<?php echo attribute_escape( $comment->comment_author_url ); ?>" tabindex="3" />
     
    8686
    8787<div id="postdiv" class="postarea">
    88 <h3><?php _e('Comment') ?></h3>
     88<h3><label for="content"><?php _e('Comment') ?></label></h3>
    8989<?php the_editor($comment->comment_content, 'content', 'newcomment_author_url', false, 4); ?>
    9090<?php wp_nonce_field( 'closedpostboxes', 'closedpostboxesnonce', false ); ?>
Note: See TracChangeset for help on using the changeset viewer.