Make WordPress Core


Ignore:
Timestamp:
05/12/2009 10:40:56 PM (16 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-includes/general-template.php

    r11215 r11312  
    120120
    121121    $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>
    123123    <input type="text" value="' . esc_attr(apply_filters('the_search_query', get_search_query())) . '" name="s" id="s" />
    124124    <input type="submit" id="searchsubmit" value="'. esc_attr__('Search') .'" />
Note: See TracChangeset for help on using the changeset viewer.