WordPress.org

Make WordPress Core


Ignore:
Timestamp:
05/04/2009 09:28:58 PM (11 years ago)
Author:
ryan
Message:

Use invisible class for hiding labels and legends.

File:
1 edited

Legend:

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

    r11159 r11180  
    261261<p><label for="post_status_private" class="selectit"><input id="post_status_private" name="post_status" type="checkbox" value="private" <?php checked($post->post_status, 'private'); ?> tabindex='4' /> <?php _e('Keep this page private') ?></label></p>
    262262<h4><?php _e( 'Page Password' ); ?></h4>
    263 <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 the_post_password(); ?>" /></p>
     263<p><label class="invisible" for="post_password"><?php _e('Password Protect This Page') ?></label><input name="post_password" type="text" size="25" id="post_password" value="<?php the_post_password(); ?>" /></p>
    264264<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>
    265265<?php
     
    277277?>
    278278<h5><?php _e('Parent') ?></h5>
    279 <label class="hidden" for="parent_id"><?php _e('Page Parent') ?></label>
     279<label class="invisible" for="parent_id"><?php _e('Page Parent') ?></label>
    280280<?php wp_dropdown_pages(array('exclude_tree' => $post->ID, 'selected' => $post->post_parent, 'name' => 'parent_id', 'show_option_none' => __('Main Page (no parent)'), 'sort_column'=> 'menu_order, post_title')); ?>
    281281<p><?php _e('You can arrange your pages in hierarchies, for example you could have an &#8220;About&#8221; page that has &#8220;Life Story&#8221; and &#8220;My Dog&#8221; pages under it. There are no limits to how deeply nested you can make pages.'); ?></p>
     
    284284?>
    285285<h5><?php _e('Template') ?></h5>
    286 <label class="hidden" for="page_template"><?php _e('Page Template') ?></label><select name="page_template" id="page_template">
     286<label class="invisible" for="page_template"><?php _e('Page Template') ?></label><select name="page_template" id="page_template">
    287287<option value='default'><?php _e('Default Template'); ?></option>
    288288<?php page_template_dropdown($post->page_template); ?>
     
    293293?>
    294294<h5><?php _e('Order') ?></h5>
    295 <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 attr($post->menu_order) ?>" /></p>
     295<p><label class="invisible" for="menu_order"><?php _e('Page Order') ?></label><input name="menu_order" type="text" size="4" id="menu_order" value="<?php echo attr($post->menu_order) ?>" /></p>
    296296<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>
    297297<?php
     
    349349function page_slug_meta_box($post){
    350350?>
    351 <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 attr( $post->post_name ); ?>" />
     351<label class="invisible" for="post_name"><?php _e('Page Slug') ?></label><input name="post_name" type="text" size="13" id="post_name" value="<?php echo attr( $post->post_name ); ?>" />
    352352<?php
    353353}
     
    371371            $authors[] = $post->post_author;
    372372?>
    373 <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) ); ?>
     373<label class="invisible" 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) ); ?>
    374374<?php
    375375    }
     
    442442<div id="titlediv">
    443443<div id="titlewrap">
    444     <label class="hidden" for="title"><?php _e('Title') ?></label>
     444    <label class="invisible" for="title"><?php _e('Title') ?></label>
    445445    <input type="text" name="post_title" size="30" tabindex="1" value="<?php echo attr( htmlspecialchars( $post->post_title ) ); ?>" id="title" autocomplete="off" />
    446446</div>
Note: See TracChangeset for help on using the changeset viewer.