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/plugin-install.php

    r11232 r11312  
    164164        </select>
    165165        <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>
    167167        <input type="submit" id="plugin-search-input" name="search" value="<?php esc_attr_e('Search Plugins'); ?>" class="button" />
    168168    </form><?php
     
    212212    <form method="post" enctype="multipart/form-data" action="<?php echo admin_url('update.php?action=upload-plugin') ?>">
    213213        <?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>
    215215        <input type="file" id="pluginzip" name="pluginzip" />
    216216        <input type="submit" class="button" value="<?php esc_attr_e('Install Now') ?>" />
Note: See TracChangeset for help on using the changeset viewer.