Make WordPress Core

Ticket #9445: 9445.2.patch

File 9445.2.patch, 20.7 KB (added by hakre, 17 years ago)

Labels added. (plus update to the latest revision, new classname)

  • wp-admin/edit-form-advanced.php

     
    170170
    171171<div id="post-visibility-select" class="hide-if-js">
    172172<input type="hidden" name="hidden_post_password" id="hidden-post-password" value="<?php echo attr($post->post_password); ?>" />
    173 <input type="checkbox" style="display:none" name="hidden_post_sticky" id="hidden-post-sticky" value="sticky" <?php checked(is_sticky($post->ID)); ?> />
     173<input type="checkbox" style="display:none" name="hidden_post_sticky" id="hidden-post-sticky" value="sticky" alt="TODO" <?php checked(is_sticky($post->ID)); ?> />
    174174<input type="hidden" name="hidden_post_visibility" id="hidden-post-visibility" value="<?php echo attr( $visibility ); ?>" />
    175175
    176176
     
    277277        <div class="jaxtag">
    278278        <div class="nojs-tags hide-if-js">
    279279        <p><?php _e('Add or remove tags'); ?></p>
     280        <label class="invisible" for="tax-input[<?php echo $tax_name; ?>]"><?php _e('Tags'); ?></label>
    280281        <textarea name="<?php echo "tax_input[$tax_name]"; ?>" class="the-tags" id="tax-input[<?php echo $tax_name; ?>]"><?php echo attr(get_terms_to_edit( $post->ID, $tax_name )); ?></textarea></div>
    281282
    282283        <span class="ajaxtag hide-if-no-js">
  • wp-admin/link-manager.php

     
    190190
    191191                        switch($column_name) {
    192192                                case 'cb':
    193                                         echo '<th scope="row" class="check-column"><input type="checkbox" name="linkcheck[]" value="'. attr($link->link_id) .'" /></th>';
     193                                        echo '<th scope="row" class="check-column"><label class="invisible" for="link-check-' . $link->link_id. '">' . __('Select Link') . '</label><input type="checkbox" name="linkcheck[]" id="link-check-'. $link->link_id .' " value="'. attr($link->link_id) .'" /></th>';
    194194                                        break;
    195195                                case 'name':
    196196
  • wp-admin/options-permalink.php

     
    173173                        </label>
    174174                </th>
    175175                <td>
     176                        <label class="invisible" for="permalink_structure"><?php _e('Permalink Structure'); ?></label>
    176177                        <input name="permalink_structure" id="permalink_structure" type="text" value="<?php echo attr($permalink_structure); ?>" class="regular-text code" />
    177178                </td>
    178179        </tr>
  • wp-admin/plugins.php

     
    327327<table class="widefat" cellspacing="0" id="<?php echo $context ?>-plugins-table">
    328328        <thead>
    329329        <tr>
    330                 <th scope="col" class="manage-column check-column"><input type="checkbox" /></th>
     330                <th scope="col" class="manage-column check-column"><input type="checkbox" alt="TODO" /></th>
    331331                <th scope="col" class="manage-column"><?php _e('Plugin'); ?></th>
    332332                <th scope="col" class="manage-column num"><?php _e('Version'); ?></th>
    333333                <th scope="col" class="manage-column"><?php _e('Description'); ?></th>
     
    336336
    337337        <tfoot>
    338338        <tr>
    339                 <th scope="col" class="manage-column check-column"><input type="checkbox" /></th>
     339                <th scope="col" class="manage-column check-column"><input type="checkbox" alt="TODO" /></th>
    340340                <th scope="col" class="manage-column"><?php _e('Plugin'); ?></th>
    341341                <th scope="col" class="manage-column num"><?php _e('Version'); ?></th>
    342342                <th scope="col" class="manage-column"><?php _e('Description'); ?></th>
     
    369369                $class = $is_active ? 'active' : 'inactive';
    370370                echo "
    371371        <tr class='$class'>
    372                 <th scope='row' class='check-column'><input type='checkbox' name='checked[]' value='" . attr($plugin_file) . "' /></th>
     372                <th scope='row' class='check-column'><label class='invisible' for='plugin-check-" . attr($plugin_file) . "'>' . __('Select Plugin') . '</label><input type='checkbox' name='checked[]' id='plugin-check-" . attr($plugin_file) . "' value='" . attr($plugin_file) . "' /></th>
    373373                <td class='plugin-title'><strong>{$plugin_data['Title']}</strong>";
    374374                $i = 0;
    375375                echo '<div class="row-actions">';
  • wp-admin/press-this.php

     
    499499                                                        <label class="invisible" for="newtag"><?php _e('Post Tags'); ?></label>
    500500                                                        <input type="hidden" name="tax_input[post_tag]" class="the-tags" id="tax-input[post_tag]" value="" />
    501501                                                        <span class="ajaxtag" style="display:none;">
    502                                                                 <input type="text" name="newtag[post_tag]" class="newtag form-input-tip" size="16" autocomplete="off" value="<?php _ea('Add new tag'); ?>" />
     502                                                                <input type="text" name="newtag[post_tag]" class="newtag form-input-tip" size="16" autocomplete="off" value="<?php _ea('Add new tag'); ?>" alt="TODO" />
    503503                                                                <input type="button" class="button tagadd" value="<?php _ea('Add'); ?>" tabindex="3" />
    504504                                                        </span>
    505505                                                </p>
     
    518518
    519519                <div id="titlediv">
    520520                        <div class="titlewrap">
    521                                 <input name="title" id="title" class="text" value="<?php echo attr($title);?>"/>
     521                                <label class="invisible" for="title"><?php _e('Title') ?></label>
     522                                <input name="title" id="title" class="text" value="<?php echo attr($title);?>" />
    522523                        </div>
    523524                </div>
    524525
  • wp-admin/upload.php

     
    299299<table class="widefat" cellspacing="0">
    300300<thead>
    301301<tr>
    302         <th scope="col" class="check-column"><input type="checkbox" /></th>
     302        <th scope="col" class="check-column"><input type="checkbox" alt="TODO" /></th>
    303303        <th scope="col"></th>
    304304        <th scope="col"><?php /* translators: column name in media */ echo _x('Media', 'media column name'); ?></th>
    305305        <th scope="col"><?php /* translators: column name in media */ echo _x('Author', 'media column name'); ?></th>
     
    309309
    310310<tfoot>
    311311<tr>
    312         <th scope="col" class="check-column"><input type="checkbox" /></th>
     312        <th scope="col" class="check-column"><input type="checkbox" alt="TODO" /></th>
    313313        <th scope="col"></th>
    314314        <th scope="col"><?php /* translators: column name in media */ echo _x('Media', 'media column name'); ?></th>
    315315        <th scope="col"><?php /* translators: column name in media */ echo _x('Author', 'media column name'); ?></th>
     
    325325                        $att_title = wp_specialchars( _draft_or_post_title($post->ID) );
    326326?>
    327327        <tr id='post-<?php echo $post->ID; ?>' class='<?php echo $class; ?>' valign="top">
    328                 <th scope="row" class="check-column"><input type="checkbox" name="media[]" value="<?php echo attr($post->ID); ?>" /></th>
     328                <th scope="row" class="check-column"><label class="invisible" for="media-check-<?php echo attr($post->ID); ?>"><?php _e('Select Media-File') ?></label><input type="checkbox" name="media[]" id="media-check-<?php echo attr($post->ID); ?>" value="<?php echo attr($post->ID); ?>" /></th>
    329329
    330330                <td class="media-icon"><?php
    331331                if ( $thumb = wp_get_attachment_image( $post->ID, array(80, 60), true ) ) { ?>
  • wp-admin/user-edit.php

     
    356356<tr id="password">
    357357        <th><label for="pass1"><?php _e('New Password'); ?></label></th>
    358358        <td><input type="password" name="pass1" id="pass1" size="16" value="" autocomplete="off" /> <?php _e("If you would like to change the password type a new one. Otherwise leave this blank."); ?><br />
    359                 <input type="password" name="pass2" id="pass2" size="16" value="" autocomplete="off" /> <?php _e("Type your new password again."); ?><br />
     359                <label class="invisible" for="pass2"><?php _e('Password repetition') ?></label><input type="password" name="pass2" id="pass2" size="16" value="" autocomplete="off" /> <?php _e("Type your new password again."); ?><br />
    360360        <?php if ( $is_profile_page ): ?>
    361361                <div id="pass-strength-result"><?php _e('Strength indicator'); ?></div>
    362362                <p><?php _e('Hint: Your password should be at least seven characters long. To make it stronger, use upper and lower case letters, numbers and symbols like ! " ? $ % ^ &amp; ).'); ?></p>
  • wp-admin/user-new.php

     
    114114        <tr class="form-field form-required">
    115115                <th scope="row"><label for="pass1"><?php _e('Password (twice)') ?> </label></th>
    116116                <td><input name="pass1" type="password" id="pass1" autocomplete="off" />
    117                 <br />
    118                 <input name="pass2" type="password" id="pass2" autocomplete="off"/></td>
     117                <br /><label class="invisible" for="pass2"><?php _e('Password repetition') ?></label>
     118                <input name="pass2" type="password" id="pass2" autocomplete="off" /></td>
    119119        </tr>
    120120<?php endif; ?>
    121121
  • wp-admin/includes/plugin-install.php

     
    157157        $term = isset($_REQUEST['s']) ? stripslashes( $_REQUEST['s'] ) : '';
    158158
    159159        ?><form id="search-plugins" method="post" action="<?php echo admin_url('plugin-install.php?tab=search') ?>">
     160                <label class="invisible" for="typeselector"><?php _e('Type of Search') ?></label>
    160161                <select name="type" id="typeselector">
    161162                        <option value="term"<?php selected('term', $type) ?>><?php _e('Term') ?></option>
    162163                        <option value="author"<?php selected('author', $type) ?>><?php _e('Author') ?></option>
    163164                        <option value="tag"<?php selected('tag', $type) ?>><?php _x('Tag', 'Plugin Installer') ?></option>
    164165                </select>
    165                 <input type="text" name="s" value="<?php echo attr($term) ?>" />
     166                <label class="invisible" for="plugin-search-term"><?php _e('Plugin Search Term'); ?></label>
     167                <input type="text" name="s" id="plugin-search-term" value="<?php echo attr($term) ?>" />
    166168                <label class="invisible" for="plugin-search-input"><?php _e('Search Plugins'); ?></label>
    167                 <input type="submit" id="plugin-search-input" name="search" value="<?php _ea('Search Plugins') ?>" class="button" />
     169                <input type="submit" name="search" id="plugin-search-input" value="<?php _ea('Search Plugins') ?>" class="button" />
    168170        </form><?php
    169171}
    170172
  • wp-admin/includes/template.php

     
    167167                        case 'cb':
    168168                                $output .= "<th scope='row' class='check-column'>";
    169169                                if ( $default_cat_id != $category->term_id ) {
    170                                         $output .= "<input type='checkbox' name='delete[]' value='$category->term_id' />";
     170                                        $output .= "<label class='invisible' for='cat-delete-check-$category->term_id'>" . __('Select for Deletion') . "</label><input type='checkbox' name='delete[]' id='cat-delete-check-$category->term_id' value='$category->term_id' />";
    171171                                } else {
    172172                                        $output .= "&nbsp;";
    173173                                }
     
    337337                        case 'cb':
    338338                                $output .= "<th scope='row' class='check-column'>";
    339339                                if ( absint( get_option( 'default_link_category' ) ) != $category->term_id ) {
    340                                         $output .= "<input type='checkbox' name='delete[]' value='$category->term_id' />";
     340                                        $output .= "<label class='invisible' for='category-delete-check-$category->term_id'>" . __('Select for Deletion') . "</label><input type='checkbox' name='delete[]' id='category-delete-check-$category->term_id' value='$category->term_id' />";
    341341                                } else {
    342342                                        $output .= "&nbsp;";
    343343                                }
     
    655655
    656656                        switch ($column_name) {
    657657                                case 'cb':
    658                                         $out .= '<th scope="row" class="check-column"> <input type="checkbox" name="delete_tags[]" value="' . $tag->term_id . '" /></th>';
     658                                        $out .= '<th scope="row" class="check-column"> <label class="invisible" for="tag-delete-check-' . $tag->term_id . '">' . __('Select for Deletion') . '</label><input type="checkbox" name="delete_tags[]" id="tag-delete-check-' . $tag->term_id . '" value="' . $tag->term_id . '" /></th>';
    659659                                        break;
    660660                                case 'name':
    661661                                        $out .= '<td ' . $attributes . '><strong><a class="row-title" href="' . $edit_link . '" title="' . attr(sprintf(__('Edit "%s"'), $name)) . '">' . $name . '</a></strong><br />';
     
    746746 */
    747747function wp_manage_posts_columns() {
    748748        $posts_columns = array();
    749         $posts_columns['cb'] = '<input type="checkbox" />';
     749        $posts_columns['cb'] = '<input type="checkbox" alt="TODO" />';
    750750        /* translators: manage posts column name */
    751751        $posts_columns['title'] = _x('Post', 'column name');
    752752        $posts_columns['author'] = __('Author');
     
    770770 */
    771771function wp_manage_media_columns() {
    772772        $posts_columns = array();
    773         $posts_columns['cb'] = '<input type="checkbox" />';
     773        $posts_columns['cb'] = '<input type="checkbox" alt="TODO" />';
    774774        $posts_columns['icon'] = '';
    775775        /* translators: column name */
    776776        $posts_columns['media'] = _x('File', 'column name');
     
    796796 */
    797797function wp_manage_pages_columns() {
    798798        $posts_columns = array();
    799         $posts_columns['cb'] = '<input type="checkbox" />';
     799        $posts_columns['cb'] = '<input type="checkbox" alt="TODO" />';
    800800        $posts_columns['title'] = __('Title');
    801801        $posts_columns['author'] = __('Author');
    802802        $post_status = 'all';
     
    837837                        break;
    838838                case 'edit-comments':
    839839                        $_wp_column_headers[$page] = array(
    840                                 'cb' => '<input type="checkbox" />',
     840                                'cb' => '<input type="checkbox" alt="TODO" />',
    841841                                'author' => __('Author'),
    842842                                /* translators: column name */
    843843                                'comment' => _x('Comment', 'column name'),
     
    848848                        break;
    849849                case 'link-manager':
    850850                        $_wp_column_headers[$page] = array(
    851                                 'cb' => '<input type="checkbox" />',
     851                                'cb' => '<input type="checkbox" alt="TODO" />',
    852852                                'name' => __('Name'),
    853853                                'url' => __('URL'),
    854854                                'categories' => __('Categories'),
     
    862862                        break;
    863863                case 'categories':
    864864                        $_wp_column_headers[$page] = array(
    865                                 'cb' => '<input type="checkbox" />',
     865                                'cb' => '<input type="checkbox" alt="TODO" />',
    866866                                'name' => __('Name'),
    867867                                'description' => __('Description'),
    868868                                'slug' => __('Slug'),
     
    872872                        break;
    873873                case 'edit-link-categories':
    874874                        $_wp_column_headers[$page] = array(
    875                                 'cb' => '<input type="checkbox" />',
     875                                'cb' => '<input type="checkbox" alt="TODO" />',
    876876                                'name' => __('Name'),
    877877                                'description' => __('Description'),
    878878                                'slug' => __('Slug'),
     
    882882                        break;
    883883                case 'edit-tags':
    884884                        $_wp_column_headers[$page] = array(
    885                                 'cb' => '<input type="checkbox" />',
     885                                'cb' => '<input type="checkbox" alt="TODO" />',
    886886                                'name' => __('Name'),
    887887                                'description' => __('Description'),
    888888                                'slug' => __('Slug'),
     
    892892                        break;
    893893                case 'users':
    894894                        $_wp_column_headers[$page] = array(
    895                                 'cb' => '<input type="checkbox" />',
     895                                'cb' => '<input type="checkbox" alt="TODO" />',
    896896                                'username' => __('Username'),
    897897                                'name' => __('Name'),
    898898                                'email' => __('E-mail'),
     
    13931393
    13941394                case 'cb':
    13951395                ?>
    1396                 <th scope="row" class="check-column"><?php if ( current_user_can( 'edit_post', $post->ID ) ) { ?><input type="checkbox" name="post[]" value="<?php the_ID(); ?>" /><?php } ?></th>
     1396                <th scope="row" class="check-column"><?php if ( current_user_can( 'edit_post', $post->ID ) ) { ?><label class="invisible" for="check-post-<?php the_ID(); ?>"><?php _e('Select Post') ?></label><input type="checkbox" name="post[]" id="check-post-<?php the_ID(); ?>" value="<?php the_ID(); ?>" /><?php } ?></th>
    13971397                <?php
    13981398                break;
    13991399
     
    16141614
    16151615        case 'cb':
    16161616                ?>
    1617                 <th scope="row" class="check-column"><input type="checkbox" name="post[]" value="<?php the_ID(); ?>" /></th>
     1617                <th scope="row" class="check-column"><label class="invisible" for="check-post-<?php the_ID(); ?>"><?php _e('Select Post') ?></label><input type="checkbox" name="post[]" id="check-post-<?php the_ID(); ?>" value="<?php the_ID(); ?>" /></th>
    16181618                <?php
    16191619                break;
    16201620        case 'date':
     
    19171917                $edit .= '</div>';
    19181918
    19191919                // Set up the checkbox (because the user is editable, otherwise its empty)
    1920                 $checkbox = "<input type='checkbox' name='users[]' id='user_{$user_object->ID}' class='$role' value='{$user_object->ID}' />";
     1920                $checkbox = "<label class='invisible' for='user_{$user_object->ID}'>" . __('Select User') ."</label><input type='checkbox' name='users[]' id='user_{$user_object->ID}' class='$role' value='{$user_object->ID}' />";
    19211921
    19221922        } else {
    19231923                $edit = '<strong>' . $user_object->user_login . '</strong>';
     
    21122112                        case 'cb':
    21132113                                if ( !$checkbox ) break;
    21142114                                echo '<th scope="row" class="check-column">';
    2115                                 if ( $user_can ) echo "<input type='checkbox' name='delete_comments[]' value='$comment->comment_ID' />";
     2115                                if ( $user_can ) echo "<label class='invisible' for='delete-comment-check-$comment->comment_ID'>" . __('Select Comment for Deletion') ."</label><input type='checkbox' name='delete_comments[]' id='delete-comment-check-$comment->comment_ID' value='$comment->comment_ID' />";
    21162116                                echo '</th>';
    21172117                                break;
    21182118                        case 'comment':
     
    24792479<tbody>
    24802480<tr>
    24812481<td id="newmetaleft" class="left">
     2482<label class="invisible" for="metakeyinput">__TODO__</label>
    24822483<?php if ( $keys ) { ?>
    24832484<select id="metakeyselect" name="metakeyselect" tabindex="7">
    24842485<option value="#NONE#"><?php _e( '- Select -' ); ?></option>
     
    24952496<span id="enternew"><?php _e('Enter new'); ?></span>
    24962497<span id="cancelnew" class="hidden"><?php _e('Cancel'); ?></span></a>
    24972498<?php } else { ?>
    2498 <input type="text" id="metakeyinput" name="metakeyinput" tabindex="7" value="" />
     2499<input type="text" id="metakeyinput" name="metakeyinput" tabindex="7" value=""/>
    24992500<?php } ?>
    25002501</td>
    2501 <td><textarea id="metavalue" name="metavalue" rows="2" cols="25" tabindex="8"></textarea></td>
     2502<td>
     2503<label class="invisible" for="metavalue">__TODO__</label>
     2504<textarea id="metavalue" name="metavalue" rows="2" cols="25" tabindex="8"></textarea>
     2505</td>
    25022506</tr>
    25032507
    25042508<tr><td colspan="2" class="submit">
     
    25572561        }
    25582562        $month .= '</select>';
    25592563
    2560         $day = '<input type="text" ' . ( $multi ? '' : 'id="jj" ' ) . 'name="jj" value="' . $jj . '" size="2" maxlength="2"' . $tab_index_attribute . ' autocomplete="off" />';
    2561         $year = '<input type="text" ' . ( $multi ? '' : 'id="aa" ' ) . 'name="aa" value="' . $aa . '" size="4" maxlength="4"' . $tab_index_attribute . ' autocomplete="off" />';
    2562         $hour = '<input type="text" ' . ( $multi ? '' : 'id="hh" ' ) . 'name="hh" value="' . $hh . '" size="2" maxlength="2"' . $tab_index_attribute . ' autocomplete="off" />';
    2563         $minute = '<input type="text" ' . ( $multi ? '' : 'id="mn" ' ) . 'name="mn" value="' . $mn . '" size="2" maxlength="2"' . $tab_index_attribute . ' autocomplete="off" />';
     2564        $day = '<input type="text" ' . ( $multi ? '' : 'id="jj" ' ) . 'name="jj" value="' . $jj . '" size="2" maxlength="2"' . $tab_index_attribute . ' autocomplete="off" alt="TODO" />';
     2565        $year = '<input type="text" ' . ( $multi ? '' : 'id="aa" ' ) . 'name="aa" value="' . $aa . '" size="4" maxlength="4"' . $tab_index_attribute . ' autocomplete="off" alt="TODO" />';
     2566        $hour = '<input type="text" ' . ( $multi ? '' : 'id="hh" ' ) . 'name="hh" value="' . $hh . '" size="2" maxlength="2"' . $tab_index_attribute . ' autocomplete="off" alt="TODO" />';
     2567        $minute = '<input type="text" ' . ( $multi ? '' : 'id="mn" ' ) . 'name="mn" value="' . $mn . '" size="2" maxlength="2"' . $tab_index_attribute . ' autocomplete="off" alt="TODO" />';
    25642568        /* translators: 1: month input, 2: day input, 3: year input, 4: hour input, 5: minute input */
    25652569        printf(__('%1$s%2$s, %3$s @ %4$s : %5$s'), $month, $day, $year, $hour, $minute);
    25662570
  • wp-admin/includes/theme-install.php

     
    147147 * @since 2.8.0
    148148 */
    149149function install_theme_search_form() {
     150        static $idcounter = 0;
     151        $idcounter++;
     152       
    150153        $type = isset( $_REQUEST['type'] ) ? stripslashes( $_REQUEST['type'] ) : '';
    151154        $term = isset( $_REQUEST['s'] ) ? stripslashes( $_REQUEST['s'] ) : '';
    152155        ?>
     
    158161        <option value="author" <?php selected('author', $type) ?>><?php _e('Author'); ?></option>
    159162        <option value="tag" <?php selected('tag', $type) ?>><?php _e('Tag'); ?></option>
    160163        </select>
    161         <input type="text" name="s" size="30" value="<?php echo attr($term) ?>" />
     164        <label class="invisible" for="search-themes-term-<?php echo $idcounter ?>"><?php _e('Theme Search'); ?></label>
     165        <input type="text" name="s" id="search-themes-term<?php echo $idcounter ?>" size="30" value="<?php echo attr($term) ?>" />
    162166        <input type="submit" name="search" value="<?php _ea('Search'); ?>" class="button" />
    163167</form>
    164168<?php