Changeset 11312
- Timestamp:
- 05/12/2009 10:40:56 PM (15 years ago)
- Location:
- trunk
- Files:
-
- 30 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/categories.php
r11204 r11312 143 143 <form class="search-form topmargin" action="" method="get"> 144 144 <p class="search-box"> 145 <label class=" invisible" for="category-search-input"><?php _e('Search Categories'); ?>:</label>145 <label class="screen-reader-text" for="category-search-input"><?php _e('Search Categories'); ?>:</label> 146 146 <input type="text" id="category-search-input" name="s" value="<?php _admin_search_query(); ?>" /> 147 147 <input type="submit" value="<?php esc_attr_e( 'Search Categories' ); ?>" class="button" /> -
trunk/wp-admin/css/global.css
r11283 r11312 187 187 188 188 /* Hide visually but not from screen readers */ 189 . invisible,190 . invisiblespan {189 .screen-reader-text, 190 .screen-reader-text span { 191 191 position: absolute; 192 192 left: -1000em; -
trunk/wp-admin/edit-comments.php
r11231 r11312 176 176 177 177 <p class="search-box"> 178 <label class=" invisible" for="comment-search-input"><?php _e( 'Search Comments' ); ?>:</label>178 <label class="screen-reader-text" for="comment-search-input"><?php _e( 'Search Comments' ); ?>:</label> 179 179 <input type="text" id="comment-search-input" name="s" value="<?php _admin_search_query(); ?>" /> 180 180 <input type="submit" value="<?php esc_attr_e( 'Search Comments' ); ?>" class="button" /> -
trunk/wp-admin/edit-form-advanced.php
r11267 r11312 283 283 284 284 <span class="ajaxtag hide-if-no-js"> 285 <label class=" invisible" for="new-tag-<?php echo $tax_name; ?>"><?php echo $box['title']; ?></label>285 <label class="screen-reader-text" for="new-tag-<?php echo $tax_name; ?>"><?php echo $box['title']; ?></label> 286 286 <input type="text" id="new-tag-<?php echo $tax_name; ?>" name="newtag[<?php echo $tax_name; ?>]" class="newtag form-input-tip" size="16" autocomplete="off" value="<?php esc_attr_e('Add new tag'); ?>" /> 287 287 <input type="button" class="button tagadd" value="<?php esc_attr_e('Add'); ?>" tabindex="3" /> … … 334 334 <h4><a id="category-add-toggle" href="#category-add" class="hide-if-no-js" tabindex="3"><?php _e( '+ Add New Category' ); ?></a></h4> 335 335 <p id="category-add" class="wp-hidden-child"> 336 <label class=" invisible" for="newcat"><?php _e( 'Add New Category' ); ?></label><input type="text" name="newcat" id="newcat" class="form-required form-input-tip" value="<?php esc_attr_e( 'New category name' ); ?>" tabindex="3" aria-required="true"/>337 <label class=" invisible" for="newcat_parent"><?php _e('Parent category'); ?>:</label><?php wp_dropdown_categories( array( 'hide_empty' => 0, 'name' => 'newcat_parent', 'orderby' => 'name', 'hierarchical' => 1, 'show_option_none' => __('Parent category'), 'tab_index' => 3 ) ); ?>336 <label class="screen-reader-text" for="newcat"><?php _e( 'Add New Category' ); ?></label><input type="text" name="newcat" id="newcat" class="form-required form-input-tip" value="<?php esc_attr_e( 'New category name' ); ?>" tabindex="3" aria-required="true"/> 337 <label class="screen-reader-text" for="newcat_parent"><?php _e('Parent category'); ?>:</label><?php wp_dropdown_categories( array( 'hide_empty' => 0, 'name' => 'newcat_parent', 'orderby' => 'name', 'hierarchical' => 1, 'show_option_none' => __('Parent category'), 'tab_index' => 3 ) ); ?> 338 338 <input type="button" id="category-add-sumbit" class="add:categorychecklist:category-add button" value="<?php esc_attr_e( 'Add' ); ?>" tabindex="3" /> 339 339 <?php wp_nonce_field( 'add-category', '_ajax_nonce', false ); ?> … … 357 357 <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 post private') ?></label></p> 358 358 <h4><?php _e( 'Post Password' ); ?></h4> 359 <p><label class=" invisible" for="post_password"><?php _e('Password Protect This Post') ?></label><input name="post_password" type="text" size="25" id="post_password" value="<?php the_post_password(); ?>" /></p>359 <p><label class="screen-reader-text" for="post_password"><?php _e('Password Protect This Post') ?></label><input name="post_password" type="text" size="25" id="post_password" value="<?php the_post_password(); ?>" /></p> 360 360 <p><?php _e('Setting a password will require people who visit your blog to enter the above password to view this post and its comments.'); ?></p> 361 361 <?php … … 372 372 function post_excerpt_meta_box($post) { 373 373 ?> 374 <label class=" invisible" for="excerpt"><?php _e('Excerpt') ?></label><textarea rows="1" cols="40" name="excerpt" tabindex="6" id="excerpt"><?php echo $post->post_excerpt ?></textarea>374 <label class="screen-reader-text" for="excerpt"><?php _e('Excerpt') ?></label><textarea rows="1" cols="40" name="excerpt" tabindex="6" id="excerpt"><?php echo $post->post_excerpt ?></textarea> 375 375 <p><?php _e('Excerpts are optional hand-crafted summaries of your content that can be used in your theme. <a href="http://codex.wordpress.org/Excerpt" target="_blank">Learn more about manual excerpts.</a>'); ?></p> 376 376 <?php … … 493 493 function post_slug_meta_box($post) { 494 494 ?> 495 <label class=" invisible" for="post_name"><?php _e('Post Slug') ?></label><input name="post_name" type="text" size="13" id="post_name" value="<?php echo esc_attr( $post->post_name ); ?>" />495 <label class="screen-reader-text" for="post_name"><?php _e('Post Slug') ?></label><input name="post_name" type="text" size="13" id="post_name" value="<?php echo esc_attr( $post->post_name ); ?>" /> 496 496 <?php 497 497 } … … 516 516 $authors[] = $post->post_author; 517 517 ?> 518 <label class=" invisible" for="post_author_override"><?php _e('Post Author'); ?></label><?php wp_dropdown_users( array('include' => $authors, 'name' => 'post_author_override', 'selected' => empty($post->ID) ? $user_ID : $post->post_author) ); ?>518 <label class="screen-reader-text" for="post_author_override"><?php _e('Post Author'); ?></label><?php wp_dropdown_users( array('include' => $authors, 'name' => 'post_author_override', 'selected' => empty($post->ID) ? $user_ID : $post->post_author) ); ?> 519 519 <?php 520 520 } … … 592 592 <div id="titlediv"> 593 593 <div id="titlewrap"> 594 <label class=" invisible" for="title"><?php _e('Title') ?></label>594 <label class="screen-reader-text" for="title"><?php _e('Title') ?></label> 595 595 <input type="text" name="post_title" size="30" tabindex="1" value="<?php echo esc_attr( htmlspecialchars( $post->post_title ) ); ?>" id="title" autocomplete="off" /> 596 596 </div> -
trunk/wp-admin/edit-link-categories.php
r11204 r11312 74 74 <form class="search-form" action="" method="get"> 75 75 <p class="search-box"> 76 <label class=" invisible" for="link-category-search-input"><?php _e( 'Search Categories' ); ?>:</label>76 <label class="screen-reader-text" for="link-category-search-input"><?php _e( 'Search Categories' ); ?>:</label> 77 77 <input type="text" id="link-category-search-input" name="s" value="<?php _admin_search_query(); ?>" /> 78 78 <input type="submit" value="<?php esc_attr_e( 'Search Categories' ); ?>" class="button" /> -
trunk/wp-admin/edit-link-form.php
r11283 r11312 139 139 <h4><a id="category-add-toggle" href="#category-add"><?php _e( '+ Add New Category' ); ?></a></h4> 140 140 <p id="link-category-add" class="wp-hidden-child"> 141 <label class=" invisible" for="newcat"><?php _e( '+ Add New Category' ); ?></label>141 <label class="screen-reader-text" for="newcat"><?php _e( '+ Add New Category' ); ?></label> 142 142 <input type="text" name="newcat" id="newcat" class="form-required form-input-tip" value="<?php esc_attr_e( 'New category name' ); ?>" aria-required="true" /> 143 143 <input type="button" id="category-add-submit" class="add:categorychecklist:linkcategorydiv button" value="<?php esc_attr_e( 'Add' ); ?>" /> … … 158 158 */ 159 159 function link_target_meta_box($link) { ?> 160 <fieldset><legend class=" invisible"><span><?php _e('Target') ?></span></legend>160 <fieldset><legend class="screen-reader-text"><span><?php _e('Target') ?></span></legend> 161 161 <p><label for="link_target_blank" class="selectit"> 162 162 <input id="link_target_blank" type="radio" name="link_target" value="_blank" <?php echo ( isset( $link->link_target ) && ($link->link_target == '_blank') ? 'checked="checked"' : ''); ?> /> … … 193 193 <tr> 194 194 <th scope="row"> <?php /* translators: xfn: http://gmpg.org/xfn/ */ _e('identity') ?> </th> 195 <td><fieldset><legend class=" invisible"><span> <?php /* translators: xfn: http://gmpg.org/xfn/ */ _e('identity') ?> </span></legend>195 <td><fieldset><legend class="screen-reader-text"><span> <?php /* translators: xfn: http://gmpg.org/xfn/ */ _e('identity') ?> </span></legend> 196 196 <label for="me"> 197 197 <input type="checkbox" name="identity" value="me" id="me" <?php xfn_check('identity', 'me'); ?> /> … … 201 201 <tr> 202 202 <th scope="row"> <?php /* translators: xfn: http://gmpg.org/xfn/ */ _e('friendship') ?> </th> 203 <td><fieldset><legend class=" invisible"><span> <?php /* translators: xfn: http://gmpg.org/xfn/ */ _e('friendship') ?> </span></legend>203 <td><fieldset><legend class="screen-reader-text"><span> <?php /* translators: xfn: http://gmpg.org/xfn/ */ _e('friendship') ?> </span></legend> 204 204 <label for="contact"> 205 205 <input class="valinp" type="radio" name="friendship" value="contact" id="contact" <?php xfn_check('friendship', 'contact', 'radio'); ?> /> <?php /* translators: xfn: http://gmpg.org/xfn/ */ _e('contact') ?></label> … … 214 214 <tr> 215 215 <th scope="row"> <?php /* translators: xfn: http://gmpg.org/xfn/ */ _e('physical') ?> </th> 216 <td><fieldset><legend class=" invisible"><span> <?php /* translators: xfn: http://gmpg.org/xfn/ */ _e('physical') ?> </span></legend>216 <td><fieldset><legend class="screen-reader-text"><span> <?php /* translators: xfn: http://gmpg.org/xfn/ */ _e('physical') ?> </span></legend> 217 217 <label for="met"> 218 218 <input class="valinp" type="checkbox" name="physical" value="met" id="met" <?php xfn_check('physical', 'met'); ?> /> … … 222 222 <tr> 223 223 <th scope="row"> <?php /* translators: xfn: http://gmpg.org/xfn/ */ _e('professional') ?> </th> 224 <td><fieldset><legend class=" invisible"><span> <?php /* translators: xfn: http://gmpg.org/xfn/ */ _e('professional') ?> </span></legend>224 <td><fieldset><legend class="screen-reader-text"><span> <?php /* translators: xfn: http://gmpg.org/xfn/ */ _e('professional') ?> </span></legend> 225 225 <label for="co-worker"> 226 226 <input class="valinp" type="checkbox" name="professional" value="co-worker" id="co-worker" <?php xfn_check('professional', 'co-worker'); ?> /> … … 233 233 <tr> 234 234 <th scope="row"> <?php /* translators: xfn: http://gmpg.org/xfn/ */ _e('geographical') ?> </th> 235 <td><fieldset><legend class=" invisible"><span> <?php /* translators: xfn: http://gmpg.org/xfn/ */ _e('geographical') ?> </span></legend>235 <td><fieldset><legend class="screen-reader-text"><span> <?php /* translators: xfn: http://gmpg.org/xfn/ */ _e('geographical') ?> </span></legend> 236 236 <label for="co-resident"> 237 237 <input class="valinp" type="radio" name="geographical" value="co-resident" id="co-resident" <?php xfn_check('geographical', 'co-resident', 'radio'); ?> /> … … 247 247 <tr> 248 248 <th scope="row"> <?php /* translators: xfn: http://gmpg.org/xfn/ */ _e('family') ?> </th> 249 <td><fieldset><legend class=" invisible"><span> <?php /* translators: xfn: http://gmpg.org/xfn/ */ _e('family') ?> </span></legend>249 <td><fieldset><legend class="screen-reader-text"><span> <?php /* translators: xfn: http://gmpg.org/xfn/ */ _e('family') ?> </span></legend> 250 250 <label for="child"> 251 251 <input class="valinp" type="radio" name="family" value="child" id="child" <?php xfn_check('family', 'child', 'radio'); ?> /> … … 270 270 <tr> 271 271 <th scope="row"> <?php /* translators: xfn: http://gmpg.org/xfn/ */ _e('romantic') ?> </th> 272 <td><fieldset><legend class=" invisible"><span> <?php /* translators: xfn: http://gmpg.org/xfn/ */ _e('romantic') ?> </span></legend>272 <td><fieldset><legend class="screen-reader-text"><span> <?php /* translators: xfn: http://gmpg.org/xfn/ */ _e('romantic') ?> </span></legend> 273 273 <label for="muse"> 274 274 <input class="valinp" type="checkbox" name="romantic" value="muse" id="muse" <?php xfn_check('romantic', 'muse'); ?> /> -
trunk/wp-admin/edit-page-form.php
r11245 r11312 262 262 <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> 263 263 <h4><?php _e( 'Page Password' ); ?></h4> 264 <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>264 <p><label class="screen-reader-text" 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> 265 265 <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> 266 266 <?php … … 278 278 ?> 279 279 <h5><?php _e('Parent') ?></h5> 280 <label class=" invisible" for="parent_id"><?php _e('Page Parent') ?></label>280 <label class="screen-reader-text" for="parent_id"><?php _e('Page Parent') ?></label> 281 281 <?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')); ?> 282 282 <p><?php _e('You can arrange your pages in hierarchies, for example you could have an “About” page that has “Life Story” and “My Dog” pages under it. There are no limits to how deeply nested you can make pages.'); ?></p> … … 284 284 if ( 0 != count( get_page_templates() ) ) { ?> 285 285 <h5><?php _e('Template') ?></h5> 286 <label class=" invisible" for="page_template"><?php _e('Page Template') ?></label><select name="page_template" id="page_template">286 <label class="screen-reader-text" for="page_template"><?php _e('Page Template') ?></label><select name="page_template" id="page_template"> 287 287 <option value='default'><?php _e('Default Template'); ?></option> 288 288 <?php page_template_dropdown($post->page_template); ?> … … 292 292 } ?> 293 293 <h5><?php _e('Order') ?></h5> 294 <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 esc_attr($post->menu_order) ?>" /></p>294 <p><label class="screen-reader-text" for="menu_order"><?php _e('Page Order') ?></label><input name="menu_order" type="text" size="4" id="menu_order" value="<?php echo esc_attr($post->menu_order) ?>" /></p> 295 295 <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’ll be better in future releases.)'); ?></p> 296 296 <?php … … 347 347 function page_slug_meta_box($post){ 348 348 ?> 349 <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 esc_attr( $post->post_name ); ?>" />349 <label class="screen-reader-text" for="post_name"><?php _e('Page Slug') ?></label><input name="post_name" type="text" size="13" id="post_name" value="<?php echo esc_attr( $post->post_name ); ?>" /> 350 350 <?php 351 351 } … … 369 369 $authors[] = $post->post_author; 370 370 ?> 371 <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) ); ?>371 <label class="screen-reader-text" 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) ); ?> 372 372 <?php 373 373 } … … 436 436 <div id="titlediv"> 437 437 <div id="titlewrap"> 438 <label class=" invisible" for="title"><?php _e('Title') ?></label>438 <label class="screen-reader-text" for="title"><?php _e('Title') ?></label> 439 439 <input type="text" name="post_title" size="30" tabindex="1" value="<?php echo esc_attr( htmlspecialchars( $post->post_title ) ); ?>" id="title" autocomplete="off" /> 440 440 </div> -
trunk/wp-admin/edit-pages.php
r11204 r11312 170 170 171 171 <p class="search-box"> 172 <label class=" invisible" for="page-search-input"><?php _e( 'Search Pages' ); ?>:</label>172 <label class="screen-reader-text" for="page-search-input"><?php _e( 'Search Pages' ); ?>:</label> 173 173 <input type="text" id="page-search-input" name="s" value="<?php _admin_search_query(); ?>" /> 174 174 <input type="submit" value="<?php esc_attr_e( 'Search Pages' ); ?>" class="button" /> -
trunk/wp-admin/edit-tags.php
r11204 r11312 159 159 <form class="search-form" action="" method="get"> 160 160 <p class="search-box"> 161 <label class=" invisible" for="tag-search-input"><?php _e( 'Search Tags' ); ?>:</label>161 <label class="screen-reader-text" for="tag-search-input"><?php _e( 'Search Tags' ); ?>:</label> 162 162 <input type="text" id="tag-search-input" name="s" value="<?php _admin_search_query(); ?>" /> 163 163 <input type="submit" value="<?php esc_attr_e( 'Search Tags' ); ?>" class="button" /> -
trunk/wp-admin/edit.php
r11204 r11312 165 165 166 166 <p class="search-box"> 167 <label class=" invisible" for="post-search-input"><?php _e( 'Search Posts' ); ?>:</label>167 <label class="screen-reader-text" for="post-search-input"><?php _e( 'Search Posts' ); ?>:</label> 168 168 <input type="text" id="post-search-input" name="s" value="<?php the_search_query(); ?>" /> 169 169 <input type="submit" value="<?php esc_attr_e( 'Search Posts' ); ?>" class="button" /> -
trunk/wp-admin/includes/file.php
r11304 r11312 762 762 <th scope="row"><?php _e('Connection Type') ?></th> 763 763 <td> 764 <fieldset><legend class=" invisible"><span><?php _e('Connection Type') ?></span></legend>764 <fieldset><legend class="screen-reader-text"><span><?php _e('Connection Type') ?></span></legend> 765 765 <label><input id="ftp" name="connection_type" type="radio" value="ftp" <?php checked('ftp', $connection_type); if ( defined('FTP_SSL') || defined('FTP_SSH') ) echo ' disabled="disabled"'; ?>/> <?php _e('FTP') ?></label><br /> 766 766 <label><input id="ftps" name="connection_type" type="radio" value="ftps" <?php checked('ftps', $connection_type); if ( defined('FTP_SSH') || defined('FTP_SSH') ) echo ' disabled="disabled"'; ?>/> <?php _e('FTPS (SSL)') ?></label><br /> -
trunk/wp-admin/includes/media.php
r11244 r11312 1355 1355 <?php do_action('pre-html-upload-ui'); ?> 1356 1356 <p id="async-upload-wrap"> 1357 <label class=" invisible" for="async-upload"><?php _e('Upload'); ?></label>1357 <label class="screen-reader-text" for="async-upload"><?php _e('Upload'); ?></label> 1358 1358 <input type="file" name="async-upload" id="async-upload" /> <input type="submit" class="button" name="html-upload" value="<?php esc_attr_e('Upload'); ?>" /> <a href="#" onclick="return top.tb_remove();"><?php _e('Cancel'); ?></a> 1359 1359 </p> … … 1711 1711 1712 1712 <p id="media-search" class="search-box"> 1713 <label class=" invisible" for="media-search-input"><?php _e('Search Media');?>:</label>1713 <label class="screen-reader-text" for="media-search-input"><?php _e('Search Media');?>:</label> 1714 1714 <input type="text" id="media-search-input" name="s" value="<?php the_search_query(); ?>" /> 1715 1715 <input type="submit" value="<?php esc_attr_e( 'Search Media' ); ?>" class="button" /> -
trunk/wp-admin/includes/plugin-install.php
r11232 r11312 164 164 </select> 165 165 <input type="text" name="s" value="<?php echo esc_attr($term) ?>" /> 166 <label class=" invisible" for="plugin-search-input"><?php _e('Search Plugins'); ?></label>166 <label class="screen-reader-text" for="plugin-search-input"><?php _e('Search Plugins'); ?></label> 167 167 <input type="submit" id="plugin-search-input" name="search" value="<?php esc_attr_e('Search Plugins'); ?>" class="button" /> 168 168 </form><?php … … 212 212 <form method="post" enctype="multipart/form-data" action="<?php echo admin_url('update.php?action=upload-plugin') ?>"> 213 213 <?php wp_nonce_field( 'plugin-upload') ?> 214 <label class=" invisible" for="pluginzip"><?php _e('Plugin zip file'); ?></label>214 <label class="screen-reader-text" for="pluginzip"><?php _e('Plugin zip file'); ?></label> 215 215 <input type="file" id="pluginzip" name="pluginzip" /> 216 216 <input type="submit" class="button" value="<?php esc_attr_e('Install Now') ?>" /> -
trunk/wp-admin/includes/template.php
r11245 r11312 2435 2435 2436 2436 $r .= "\n\t<tr id='meta-{$entry['meta_id']}' class='$style'>"; 2437 $r .= "\n\t\t<td class='left'><label class=' invisible' for='meta[{$entry['meta_id']}][key]'>" . __( 'Key' ) . "</label><input name='meta[{$entry['meta_id']}][key]' id='meta[{$entry['meta_id']}][key]' tabindex='6' type='text' size='20' value='{$entry['meta_key']}' />";2437 $r .= "\n\t\t<td class='left'><label class='screen-reader-text' for='meta[{$entry['meta_id']}][key]'>" . __( 'Key' ) . "</label><input name='meta[{$entry['meta_id']}][key]' id='meta[{$entry['meta_id']}][key]' tabindex='6' type='text' size='20' value='{$entry['meta_key']}' />"; 2438 2438 2439 2439 $r .= "\n\t\t<div class='submit'><input name='deletemeta[{$entry['meta_id']}]' type='submit' "; … … 2443 2443 $r .= "</td>"; 2444 2444 2445 $r .= "\n\t\t<td><label class=' invisible' for='meta[{$entry['meta_id']}][value]'>" . __( 'Value' ) . "</label><textarea name='meta[{$entry['meta_id']}][value]' id='meta[{$entry['meta_id']}][value]' tabindex='6' rows='2' cols='30'>{$entry['meta_value']}</textarea></td>\n\t</tr>";2445 $r .= "\n\t\t<td><label class='screen-reader-text' for='meta[{$entry['meta_id']}][value]'>" . __( 'Value' ) . "</label><textarea name='meta[{$entry['meta_id']}][value]' id='meta[{$entry['meta_id']}][value]' tabindex='6' rows='2' cols='30'>{$entry['meta_value']}</textarea></td>\n\t</tr>"; 2446 2446 return $r; 2447 2447 } … … 3160 3160 <input type="hidden" name="affected" id="affected" value="" /> 3161 3161 <?php wp_nonce_field( 'find-posts', '_ajax_nonce', false ); ?> 3162 <label class=" invisible" for="find-posts-input"><?php _e( 'Search' ); ?></label>3162 <label class="screen-reader-text" for="find-posts-input"><?php _e( 'Search' ); ?></label> 3163 3163 <input type="text" id="find-posts-input" name="ps" value="" /> 3164 3164 <input type="button" onclick="findPosts.send();" value="<?php esc_attr_e( 'Search' ); ?>" class="button" /><br /> -
trunk/wp-admin/link-manager.php
r11245 r11312 89 89 <form class="search-form" action="" method="get"> 90 90 <p class="search-box"> 91 <label class=" invisible" for="link-search-input"><?php _e( 'Search Links' ); ?>:</label>91 <label class="screen-reader-text" for="link-search-input"><?php _e( 'Search Links' ); ?>:</label> 92 92 <input type="text" id="link-search-input" name="s" value="<?php _admin_search_query(); ?>" /> 93 93 <input type="submit" value="<?php esc_attr_e( 'Search Links' ); ?>" class="button" /> -
trunk/wp-admin/options-discussion.php
r11283 r11312 26 26 <tr valign="top"> 27 27 <th scope="row"><?php _e('Default article settings') ?></th> 28 <td><fieldset><legend class=" invisible"><span><?php _e('Default article settings') ?></span></legend>28 <td><fieldset><legend class="screen-reader-text"><span><?php _e('Default article settings') ?></span></legend> 29 29 <label for="default_pingback_flag"> 30 30 <input name="default_pingback_flag" type="checkbox" id="default_pingback_flag" value="1" <?php checked('1', get_option('default_pingback_flag')); ?> /> … … 44 44 <tr valign="top"> 45 45 <th scope="row"><?php _e('Other comment settings') ?></th> 46 <td><fieldset><legend class=" invisible"><span><?php _e('Other comment settings') ?></span></legend>46 <td><fieldset><legend class="screen-reader-text"><span><?php _e('Other comment settings') ?></span></legend> 47 47 <label for="require_name_email"><input type="checkbox" name="require_name_email" id="require_name_email" value="1" <?php checked('1', get_option('require_name_email')); ?> /> <?php _e('Comment author must fill out name and e-mail') ?></label> 48 48 <br /> … … 103 103 <tr valign="top"> 104 104 <th scope="row"><?php _e('E-mail me whenever') ?></th> 105 <td><fieldset><legend class=" invisible"><span><?php _e('E-mail me whenever') ?></span></legend>105 <td><fieldset><legend class="screen-reader-text"><span><?php _e('E-mail me whenever') ?></span></legend> 106 106 <label for="comments_notify"> 107 107 <input name="comments_notify" type="checkbox" id="comments_notify" value="1" <?php checked('1', get_option('comments_notify')); ?> /> … … 115 115 <tr valign="top"> 116 116 <th scope="row"><?php _e('Before a comment appears') ?></th> 117 <td><fieldset><legend class=" invisible"><span><?php _e('Before a comment appears') ?></span></legend>117 <td><fieldset><legend class="screen-reader-text"><span><?php _e('Before a comment appears') ?></span></legend> 118 118 <label for="comment_moderation"> 119 119 <input name="comment_moderation" type="checkbox" id="comment_moderation" value="1" <?php checked('1', get_option('comment_moderation')); ?> /> … … 125 125 <tr valign="top"> 126 126 <th scope="row"><?php _e('Comment Moderation') ?></th> 127 <td><fieldset><legend class=" invisible"><span><?php _e('Comment Moderation') ?></span></legend>127 <td><fieldset><legend class="screen-reader-text"><span><?php _e('Comment Moderation') ?></span></legend> 128 128 <p><label for="comment_max_links"><?php printf(__('Hold a comment in the queue if it contains %s or more links. (A common characteristic of comment spam is a large number of hyperlinks.)'), '<input name="comment_max_links" type="text" id="comment_max_links" value="' . esc_attr(get_option('comment_max_links')) . '" class="small-text" />' ) ?></label></p> 129 129 … … 136 136 <tr valign="top"> 137 137 <th scope="row"><?php _e('Comment Blacklist') ?></th> 138 <td><fieldset><legend class=" invisible"><span><?php _e('Comment Blacklist') ?></span></legend>138 <td><fieldset><legend class="screen-reader-text"><span><?php _e('Comment Blacklist') ?></span></legend> 139 139 <p><label for="blacklist_keys"><?php _e('When a comment contains any of these words in its content, name, URL, e-mail, or IP, it will be marked as spam. One word or IP per line. It will match inside words, so “press” will match “WordPress”.') ?></label></p> 140 140 <p> … … 155 155 <tr valign="top"> 156 156 <th scope="row"><?php _e('Avatar Display') ?></th> 157 <td><fieldset><legend class=" invisible"><span><?php _e('Avatar display') ?></span></legend>157 <td><fieldset><legend class="screen-reader-text"><span><?php _e('Avatar display') ?></span></legend> 158 158 <?php 159 159 $yesorno = array(0 => __("Don’t show Avatars"), 1 => __('Show Avatars')); … … 167 167 <tr valign="top"> 168 168 <th scope="row"><?php _e('Maximum Rating') ?></th> 169 <td><fieldset><legend class=" invisible"><span><?php _e('Maximum Rating') ?></span></legend>169 <td><fieldset><legend class="screen-reader-text"><span><?php _e('Maximum Rating') ?></span></legend> 170 170 171 171 <?php … … 181 181 <tr valign="top"> 182 182 <th scope="row"><?php _e('Default Avatar') ?></th> 183 <td class="defaultavatarpicker"><fieldset><legend class=" invisible"><span><?php _e('Default Avatar') ?></span></legend>183 <td class="defaultavatarpicker"><fieldset><legend class="screen-reader-text"><span><?php _e('Default Avatar') ?></span></legend> 184 184 185 185 <?php _e('For users without a custom avatar of their own, you can either display a generic logo or a generated one based on their e-mail address.'); ?><br /> -
trunk/wp-admin/options-general.php
r11283 r11312 84 84 <tr valign="top"> 85 85 <th scope="row"><?php _e('Membership') ?></th> 86 <td> <fieldset><legend class=" invisible"><span><?php _e('Membership') ?></span></legend><label for="users_can_register">86 <td> <fieldset><legend class="screen-reader-text"><span><?php _e('Membership') ?></span></legend><label for="users_can_register"> 87 87 <input name="users_can_register" type="checkbox" id="users_can_register" value="1" <?php checked('1', get_option('users_can_register')); ?> /> 88 88 <?php _e('Anyone can register') ?></label> … … 198 198 <th scope="row"><?php _e('Date Format') ?></th> 199 199 <td> 200 <fieldset><legend class=" invisible"><span><?php _e('Date Format') ?></span></legend>200 <fieldset><legend class="screen-reader-text"><span><?php _e('Date Format') ?></span></legend> 201 201 <?php 202 202 … … 231 231 <th scope="row"><?php _e('Time Format') ?></th> 232 232 <td> 233 <fieldset><legend class=" invisible"><span><?php _e('Time Format') ?></span></legend>233 <fieldset><legend class="screen-reader-text"><span><?php _e('Time Format') ?></span></legend> 234 234 <?php 235 235 -
trunk/wp-admin/options-media.php
r11283 r11312 42 42 <tr valign="top"> 43 43 <th scope="row"><?php _e('Medium size') ?></th> 44 <td><fieldset><legend class=" invisible"><span><?php _e('Medium size') ?></span></legend>44 <td><fieldset><legend class="screen-reader-text"><span><?php _e('Medium size') ?></span></legend> 45 45 <label for="medium_size_w"><?php _e('Max Width'); ?></label> 46 46 <input name="medium_size_w" type="text" id="medium_size_w" value="<?php form_option('medium_size_w'); ?>" class="small-text" /> … … 52 52 <tr valign="top"> 53 53 <th scope="row"><?php _e('Large size') ?></th> 54 <td><fieldset><legend class=" invisible"><span><?php _e('Large size') ?></span></legend>54 <td><fieldset><legend class="screen-reader-text"><span><?php _e('Large size') ?></span></legend> 55 55 <label for="large_size_w"><?php _e('Max Width'); ?></label> 56 56 <input name="large_size_w" type="text" id="large_size_w" value="<?php form_option('large_size_w'); ?>" class="small-text" /> -
trunk/wp-admin/options-privacy.php
r11283 r11312 26 26 <tr valign="top"> 27 27 <th scope="row"><?php _e('Blog Visibility') ?> </th> 28 <td><fieldset><legend class=" invisible"><span><?php _e('Blog Visibility') ?> </span></legend>28 <td><fieldset><legend class="screen-reader-text"><span><?php _e('Blog Visibility') ?> </span></legend> 29 29 <p><input id="blog-public" type="radio" name="blog_public" value="1" <?php checked('1', get_option('blog_public')); ?> /> 30 30 <label for="blog-public"><?php _e('I would like my blog to be visible to everyone, including search engines (like Google, Sphere, Technorati) and archivers');?></label></p> -
trunk/wp-admin/options-reading.php
r11283 r11312 27 27 <tr valign="top"> 28 28 <th scope="row"><?php _e('Front page displays')?></th> 29 <td><fieldset><legend class=" invisible"><span><?php _e('Front page displays')?></span></legend>29 <td><fieldset><legend class="screen-reader-text"><span><?php _e('Front page displays')?></span></legend> 30 30 <p><label> 31 31 <input name="show_on_front" type="radio" value="posts" class="tog" <?php checked('posts', get_option('show_on_front')); ?> /> … … 64 64 <tr valign="top"> 65 65 <th scope="row"><?php _e('For each article in a feed, show') ?> </th> 66 <td><fieldset><legend class=" invisible"><span><?php _e('For each article in a feed, show') ?> </span></legend>66 <td><fieldset><legend class="screen-reader-text"><span><?php _e('For each article in a feed, show') ?> </span></legend> 67 67 <p><label><input name="rss_use_excerpt" type="radio" value="0" <?php checked(0, get_option('rss_use_excerpt')); ?> /> <?php _e('Full text') ?></label><br /> 68 68 <label><input name="rss_use_excerpt" type="radio" value="1" <?php checked(1, get_option('rss_use_excerpt')); ?> /> <?php _e('Summary') ?></label></p> -
trunk/wp-admin/options-writing.php
r11283 r11312 31 31 <tr valign="top"> 32 32 <th scope="row"><?php _e('Formatting') ?></th> 33 <td><fieldset><legend class=" invisible"><span><?php _e('Formatting') ?></span></legend>33 <td><fieldset><legend class="screen-reader-text"><span><?php _e('Formatting') ?></span></legend> 34 34 <label for="use_smilies"> 35 35 <input name="use_smilies" type="checkbox" id="use_smilies" value="1" <?php checked('1', get_option('use_smilies')); ?> /> … … 62 62 <tr valign="top"> 63 63 <th scope="row"><?php _e('Atom Publishing Protocol') ?></th> 64 <td><fieldset><legend class=" invisible"><span><?php _e('Atom Publishing Protocol') ?></span></legend>64 <td><fieldset><legend class="screen-reader-text"><span><?php _e('Atom Publishing Protocol') ?></span></legend> 65 65 <label for="enable_app"> 66 66 <input name="enable_app" type="checkbox" id="enable_app" value="1" <?php checked('1', get_option('enable_app')); ?> /> … … 70 70 <tr valign="top"> 71 71 <th scope="row"><?php _e('XML-RPC') ?></th> 72 <td><fieldset><legend class=" invisible"><span><?php _e('XML-RPC') ?></span></legend>72 <td><fieldset><legend class="screen-reader-text"><span><?php _e('XML-RPC') ?></span></legend> 73 73 <label for="enable_xmlrpc"> 74 74 <input name="enable_xmlrpc" type="checkbox" id="enable_xmlrpc" value="1" <?php checked('1', get_option('enable_xmlrpc')); ?> /> -
trunk/wp-admin/plugins.php
r11307 r11312 426 426 <form method="get" action=""> 427 427 <p class="search-box"> 428 <label class=" invisible" for="plugin-search-input"><?php _e( 'Search Plugins' ); ?>:</label>428 <label class="screen-reader-text" for="plugin-search-input"><?php _e( 'Search Plugins' ); ?>:</label> 429 429 <input type="text" id="plugin-search-input" name="s" value="<?php _admin_search_query(); ?>" /> 430 430 <input type="submit" value="<?php esc_attr_e( 'Search Plugins' ); ?>" class="button" /> -
trunk/wp-admin/press-this.php
r11245 r11312 482 482 <a id="category-add-toggle" href="#category-add" class="hide-if-no-js" tabindex="3"><?php _e( '+ Add New Category' ); ?></a> 483 483 <p id="category-add" class="wp-hidden-child"> 484 <label class=" invisible" for="newcat"><?php _e( 'Add New Category' ); ?></label><input type="text" name="newcat" id="newcat" class="form-required form-input-tip" value="<?php esc_attr_e( 'New category name' ); ?>" tabindex="3" aria-required="true"/>485 <label class=" invisible" for="newcat_parent"><?php _e('Parent category'); ?>:</label><?php wp_dropdown_categories( array( 'hide_empty' => 0, 'name' => 'newcat_parent', 'orderby' => 'name', 'hierarchical' => 1, 'show_option_none' => __('Parent category'), 'tab_index' => 3 ) ); ?>484 <label class="screen-reader-text" for="newcat"><?php _e( 'Add New Category' ); ?></label><input type="text" name="newcat" id="newcat" class="form-required form-input-tip" value="<?php esc_attr_e( 'New category name' ); ?>" tabindex="3" aria-required="true"/> 485 <label class="screen-reader-text" for="newcat_parent"><?php _e('Parent category'); ?>:</label><?php wp_dropdown_categories( array( 'hide_empty' => 0, 'name' => 'newcat_parent', 'orderby' => 'name', 'hierarchical' => 1, 'show_option_none' => __('Parent category'), 'tab_index' => 3 ) ); ?> 486 486 <input type="button" id="category-add-sumbit" class="add:categorychecklist:category-add button" value="<?php esc_attr_e( 'Add' ); ?>" tabindex="3" /> 487 487 <?php wp_nonce_field( 'add-category', '_ajax_nonce', false ); ?> … … 497 497 <div class="tagsdiv" id="post_tag"> 498 498 <p class="jaxtag"> 499 <label class=" invisible" for="newtag"><?php _e('Post Tags'); ?></label>499 <label class="screen-reader-text" for="newtag"><?php _e('Post Tags'); ?></label> 500 500 <input type="hidden" name="tax_input[post_tag]" class="the-tags" id="tax-input[post_tag]" value="" /> 501 501 <span class="ajaxtag" style="display:none;"> -
trunk/wp-admin/upload.php
r11245 r11312 210 210 <form class="search-form" action="" method="get"> 211 211 <p class="search-box"> 212 <label class=" invisible" for="media-search-input"><?php _e( 'Search Media' ); ?>:</label>212 <label class="screen-reader-text" for="media-search-input"><?php _e( 'Search Media' ); ?>:</label> 213 213 <input type="text" id="media-search-input" name="s" value="<?php the_search_query(); ?>" /> 214 214 <input type="submit" value="<?php esc_attr_e( 'Search Media' ); ?>" class="button" /> -
trunk/wp-admin/user-edit.php
r11302 r11312 210 210 <tr> 211 211 <th scope="row"><?php _e('Admin Color Scheme')?></th> 212 <td><fieldset><legend class=" invisible"><span><?php _e('Admin Color Scheme')?></span></legend>212 <td><fieldset><legend class="screen-reader-text"><span><?php _e('Admin Color Scheme')?></span></legend> 213 213 <?php 214 214 $current_color = get_user_option('admin_color', $user_id); -
trunk/wp-admin/users.php
r11204 r11312 291 291 <form class="search-form" action="" method="get"> 292 292 <p class="search-box"> 293 <label class=" invisible" for="user-search-input"><?php _e( 'Search Users' ); ?>:</label>293 <label class="screen-reader-text" for="user-search-input"><?php _e( 'Search Users' ); ?>:</label> 294 294 <input type="text" id="user-search-input" name="usersearch" value="<?php echo esc_attr($wp_user_search->search_term); ?>" /> 295 295 <input type="submit" value="<?php esc_attr_e( 'Search Users' ); ?>" class="button" /> … … 310 310 </select> 311 311 <input type="submit" value="<?php esc_attr_e('Apply'); ?>" name="doaction" id="doaction" class="button-secondary action" /> 312 <label class=" invisible" for="new_role"><?php _e('Change role to…') ?></label><select name="new_role" id="new_role"><option value=''><?php _e('Change role to…') ?></option><?php wp_dropdown_roles(); ?></select>312 <label class="screen-reader-text" for="new_role"><?php _e('Change role to…') ?></label><select name="new_role" id="new_role"><option value=''><?php _e('Change role to…') ?></option><?php wp_dropdown_roles(); ?></select> 313 313 <input type="submit" value="<?php esc_attr_e('Change'); ?>" name="changeit" class="button-secondary" /> 314 314 <?php wp_nonce_field('bulk-users'); ?> -
trunk/wp-admin/wp-admin.css
r11294 r11312 2434 2434 } 2435 2435 2436 #screen-meta . invisible{2436 #screen-meta .screen-reader-text { 2437 2437 visibility: hidden; 2438 2438 } -
trunk/wp-content/themes/classic/style.css
r11277 r11312 13 13 */ 14 14 15 . invisible{15 .screen-reader-text { 16 16 position: absolute; 17 17 left: -1000em; -
trunk/wp-content/themes/default/style.css
r11297 r11312 656 656 } 657 657 658 . invisible{658 .screen-reader-text { 659 659 position: absolute; 660 660 left: -1000em; -
trunk/wp-includes/general-template.php
r11215 r11312 120 120 121 121 $form = '<form role="search" method="get" id="searchform" action="' . get_option('home') . '/" > 122 <div><label class=" invisible" for="s">' . __('Search for:') . '</label>122 <div><label class="screen-reader-text" for="s">' . __('Search for:') . '</label> 123 123 <input type="text" value="' . esc_attr(apply_filters('the_search_query', get_search_query())) . '" name="s" id="s" /> 124 124 <input type="submit" id="searchsubmit" value="'. esc_attr__('Search') .'" />
Note: See TracChangeset
for help on using the changeset viewer.