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/template.php

    r11245 r11312  
    24352435
    24362436    $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']}' />";
    24382438
    24392439    $r .= "\n\t\t<div class='submit'><input name='deletemeta[{$entry['meta_id']}]' type='submit' ";
     
    24432443    $r .= "</td>";
    24442444
    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>";
    24462446    return $r;
    24472447}
     
    31603160                <input type="hidden" name="affected" id="affected" value="" />
    31613161                <?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>
    31633163                <input type="text" id="find-posts-input" name="ps" value="" />
    31643164                <input type="button" onclick="findPosts.send();" value="<?php esc_attr_e( 'Search' ); ?>" class="button" /><br />
Note: See TracChangeset for help on using the changeset viewer.