WordPress.org

Make WordPress Core


Ignore:
Timestamp:
05/04/2008 10:37:06 AM (12 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-page-form.php

    r7854 r7883  
    7070<div class="inside">
    7171
    72 <p><strong><?php _e('Publish Status') ?></strong></p>
     72<p><strong><label for='post_status'><?php _e('Publish Status') ?></label></strong></p>
    7373<p>
    74 <select name='post_status' tabindex='4'>
     74<select name='post_status' tabindex='4' id='post_status'>
    7575<?php if ( current_user_can('publish_pages') ) : ?>
    7676<option<?php selected( $post->post_status, 'publish' ); selected( $post->post_status, 'private' );?> value='publish'><?php _e('Published') ?></option>
     
    161161<div id="post-body">
    162162<div id="titlediv">
    163 <h3><?php _e('Title') ?></h3>
     163<h3><label for="title"><?php _e('Title') ?></label></h3>
    164164<div id="titlewrap">
    165165  <input type="text" name="post_title" size="30" tabindex="1" value="<?php echo attribute_escape( $post->post_title ); ?>" id="title" autocomplete="off" />
     
    176176
    177177<div id="<?php echo user_can_richedit() ? 'postdivrich' : 'postdiv'; ?>" class="postarea">
    178 <h3><?php _e('Page') ?></h3>
     178<h3><label for="content"><?php _e('Page') ?></label></h3>
    179179<?php the_editor($post->post_content); ?>
    180180<?php wp_nonce_field( 'autosave', 'autosavenonce', false ); ?>
     
    225225<h3><?php _e('Password Protect This Page') ?></h3>
    226226<div class="inside">
    227 <p><input name="post_password" type="text" size="25" id="post_password" value="<?php echo attribute_escape( $post->post_password ); ?>" /></p>
     227<p><label class="hidden" for="post_password"><?php _e('Password Protect This Page') ?></label><input name="post_password" type="text" size="25" id="post_password" value="<?php echo attribute_escape( $post->post_password ); ?>" /></p>
    228228<p><?php _e('Setting a password will require people who visit your blog to enter the above password to view this page and its comments.'); ?></p>
    229229</div>
     
    233233<h3><?php _e('Page Slug') ?></h3>
    234234<div class="inside">
    235 <input name="post_name" type="text" size="13" id="post_name" value="<?php echo attribute_escape( $post->post_name ); ?>" />
     235<label class="hidden" for="post_name"><?php _e('Page Slug') ?></label><input name="post_name" type="text" size="13" id="post_name" value="<?php echo attribute_escape( $post->post_name ); ?>" />
    236236</div>
    237237</div>
     
    240240<h3><?php _e('Page Parent') ?></h3>
    241241<div class="inside">
    242 <select name="parent_id">
     242<label class="hidden" for="parent_id"><?php _e('Page Parent') ?></label><select name="parent_id" id="parent_id">
    243243<option value='0'><?php _e('Main Page (no parent)'); ?></option>
    244244<?php parent_dropdown($post->post_parent); ?>
     
    252252<h3><?php _e('Page Template') ?></h3>
    253253<div class="inside">
    254 <select name="page_template">
     254<label class="hidden" for="page_template"><?php _e('Page Template') ?></label><select name="page_template" id="page_template">
    255255<option value='default'><?php _e('Default Template'); ?></option>
    256256<?php page_template_dropdown($post->page_template); ?>
     
    264264<h3><?php _e('Page Order') ?></h3>
    265265<div class="inside">
    266 <p><input name="menu_order" type="text" size="4" id="menu_order" value="<?php echo $post->menu_order ?>" /></p>
     266<p><label class="hidden" for="menu_order"><?php _e('Page Order') ?></label><input name="menu_order" type="text" size="4" id="menu_order" value="<?php echo $post->menu_order ?>" /></p>
    267267<p><?php _e('Pages are usually ordered alphabetically, but you can put a number above to change the order pages appear in. (We know this is a little janky, it&#8217;ll be better in future releases.)'); ?></p>
    268268</div>
     
    278278<h3><?php _e('Page Author'); ?></h3>
    279279<div class="inside">
    280 <?php wp_dropdown_users( array('include' => $authors, 'name' => 'post_author_override', 'selected' => empty($post_ID) ? $user_ID : $post->post_author) ); ?>
     280<label class="hidden" for="post_author_override"><?php _e('Page Author'); ?></label><?php wp_dropdown_users( array('include' => $authors, 'name' => 'post_author_override', 'selected' => empty($post_ID) ? $user_ID : $post->post_author) ); ?>
    281281</div>
    282282</div>
Note: See TracChangeset for help on using the changeset viewer.