Make WordPress Core


Ignore:
Timestamp:
05/12/2009 10:40:56 PM (15 years ago)
Author:
markjaquith
Message:

Use a semantic class name for text targeted to screen readers. props filosofo. fixes #9791

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/includes/media.php

    r11244 r11312  
    13551355<?php do_action('pre-html-upload-ui'); ?>
    13561356    <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>
    13581358    <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>
    13591359    </p>
     
    17111711
    17121712<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>
    17141714    <input type="text" id="media-search-input" name="s" value="<?php the_search_query(); ?>" />
    17151715    <input type="submit" value="<?php esc_attr_e( 'Search Media' ); ?>" class="button" />
Note: See TracChangeset for help on using the changeset viewer.