Ticket #9445: 9445.2.patch
| File 9445.2.patch, 20.7 KB (added by , 17 years ago) |
|---|
-
wp-admin/edit-form-advanced.php
170 170 171 171 <div id="post-visibility-select" class="hide-if-js"> 172 172 <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)); ?> /> 174 174 <input type="hidden" name="hidden_post_visibility" id="hidden-post-visibility" value="<?php echo attr( $visibility ); ?>" /> 175 175 176 176 … … 277 277 <div class="jaxtag"> 278 278 <div class="nojs-tags hide-if-js"> 279 279 <p><?php _e('Add or remove tags'); ?></p> 280 <label class="invisible" for="tax-input[<?php echo $tax_name; ?>]"><?php _e('Tags'); ?></label> 280 281 <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> 281 282 282 283 <span class="ajaxtag hide-if-no-js"> -
wp-admin/link-manager.php
190 190 191 191 switch($column_name) { 192 192 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>'; 194 194 break; 195 195 case 'name': 196 196 -
wp-admin/options-permalink.php
173 173 </label> 174 174 </th> 175 175 <td> 176 <label class="invisible" for="permalink_structure"><?php _e('Permalink Structure'); ?></label> 176 177 <input name="permalink_structure" id="permalink_structure" type="text" value="<?php echo attr($permalink_structure); ?>" class="regular-text code" /> 177 178 </td> 178 179 </tr> -
wp-admin/plugins.php
327 327 <table class="widefat" cellspacing="0" id="<?php echo $context ?>-plugins-table"> 328 328 <thead> 329 329 <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> 331 331 <th scope="col" class="manage-column"><?php _e('Plugin'); ?></th> 332 332 <th scope="col" class="manage-column num"><?php _e('Version'); ?></th> 333 333 <th scope="col" class="manage-column"><?php _e('Description'); ?></th> … … 336 336 337 337 <tfoot> 338 338 <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> 340 340 <th scope="col" class="manage-column"><?php _e('Plugin'); ?></th> 341 341 <th scope="col" class="manage-column num"><?php _e('Version'); ?></th> 342 342 <th scope="col" class="manage-column"><?php _e('Description'); ?></th> … … 369 369 $class = $is_active ? 'active' : 'inactive'; 370 370 echo " 371 371 <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> 373 373 <td class='plugin-title'><strong>{$plugin_data['Title']}</strong>"; 374 374 $i = 0; 375 375 echo '<div class="row-actions">'; -
wp-admin/press-this.php
499 499 <label class="invisible" for="newtag"><?php _e('Post Tags'); ?></label> 500 500 <input type="hidden" name="tax_input[post_tag]" class="the-tags" id="tax-input[post_tag]" value="" /> 501 501 <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" /> 503 503 <input type="button" class="button tagadd" value="<?php _ea('Add'); ?>" tabindex="3" /> 504 504 </span> 505 505 </p> … … 518 518 519 519 <div id="titlediv"> 520 520 <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);?>" /> 522 523 </div> 523 524 </div> 524 525 -
wp-admin/upload.php
299 299 <table class="widefat" cellspacing="0"> 300 300 <thead> 301 301 <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> 303 303 <th scope="col"></th> 304 304 <th scope="col"><?php /* translators: column name in media */ echo _x('Media', 'media column name'); ?></th> 305 305 <th scope="col"><?php /* translators: column name in media */ echo _x('Author', 'media column name'); ?></th> … … 309 309 310 310 <tfoot> 311 311 <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> 313 313 <th scope="col"></th> 314 314 <th scope="col"><?php /* translators: column name in media */ echo _x('Media', 'media column name'); ?></th> 315 315 <th scope="col"><?php /* translators: column name in media */ echo _x('Author', 'media column name'); ?></th> … … 325 325 $att_title = wp_specialchars( _draft_or_post_title($post->ID) ); 326 326 ?> 327 327 <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> 329 329 330 330 <td class="media-icon"><?php 331 331 if ( $thumb = wp_get_attachment_image( $post->ID, array(80, 60), true ) ) { ?> -
wp-admin/user-edit.php
356 356 <tr id="password"> 357 357 <th><label for="pass1"><?php _e('New Password'); ?></label></th> 358 358 <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 /> 360 360 <?php if ( $is_profile_page ): ?> 361 361 <div id="pass-strength-result"><?php _e('Strength indicator'); ?></div> 362 362 <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 ! " ? $ % ^ & ).'); ?></p> -
wp-admin/user-new.php
114 114 <tr class="form-field form-required"> 115 115 <th scope="row"><label for="pass1"><?php _e('Password (twice)') ?> </label></th> 116 116 <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> 119 119 </tr> 120 120 <?php endif; ?> 121 121 -
wp-admin/includes/plugin-install.php
157 157 $term = isset($_REQUEST['s']) ? stripslashes( $_REQUEST['s'] ) : ''; 158 158 159 159 ?><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> 160 161 <select name="type" id="typeselector"> 161 162 <option value="term"<?php selected('term', $type) ?>><?php _e('Term') ?></option> 162 163 <option value="author"<?php selected('author', $type) ?>><?php _e('Author') ?></option> 163 164 <option value="tag"<?php selected('tag', $type) ?>><?php _x('Tag', 'Plugin Installer') ?></option> 164 165 </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) ?>" /> 166 168 <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" /> 168 170 </form><?php 169 171 } 170 172 -
wp-admin/includes/template.php
167 167 case 'cb': 168 168 $output .= "<th scope='row' class='check-column'>"; 169 169 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' />"; 171 171 } else { 172 172 $output .= " "; 173 173 } … … 337 337 case 'cb': 338 338 $output .= "<th scope='row' class='check-column'>"; 339 339 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' />"; 341 341 } else { 342 342 $output .= " "; 343 343 } … … 655 655 656 656 switch ($column_name) { 657 657 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>'; 659 659 break; 660 660 case 'name': 661 661 $out .= '<td ' . $attributes . '><strong><a class="row-title" href="' . $edit_link . '" title="' . attr(sprintf(__('Edit "%s"'), $name)) . '">' . $name . '</a></strong><br />'; … … 746 746 */ 747 747 function wp_manage_posts_columns() { 748 748 $posts_columns = array(); 749 $posts_columns['cb'] = '<input type="checkbox" />';749 $posts_columns['cb'] = '<input type="checkbox" alt="TODO" />'; 750 750 /* translators: manage posts column name */ 751 751 $posts_columns['title'] = _x('Post', 'column name'); 752 752 $posts_columns['author'] = __('Author'); … … 770 770 */ 771 771 function wp_manage_media_columns() { 772 772 $posts_columns = array(); 773 $posts_columns['cb'] = '<input type="checkbox" />';773 $posts_columns['cb'] = '<input type="checkbox" alt="TODO" />'; 774 774 $posts_columns['icon'] = ''; 775 775 /* translators: column name */ 776 776 $posts_columns['media'] = _x('File', 'column name'); … … 796 796 */ 797 797 function wp_manage_pages_columns() { 798 798 $posts_columns = array(); 799 $posts_columns['cb'] = '<input type="checkbox" />';799 $posts_columns['cb'] = '<input type="checkbox" alt="TODO" />'; 800 800 $posts_columns['title'] = __('Title'); 801 801 $posts_columns['author'] = __('Author'); 802 802 $post_status = 'all'; … … 837 837 break; 838 838 case 'edit-comments': 839 839 $_wp_column_headers[$page] = array( 840 'cb' => '<input type="checkbox" />',840 'cb' => '<input type="checkbox" alt="TODO" />', 841 841 'author' => __('Author'), 842 842 /* translators: column name */ 843 843 'comment' => _x('Comment', 'column name'), … … 848 848 break; 849 849 case 'link-manager': 850 850 $_wp_column_headers[$page] = array( 851 'cb' => '<input type="checkbox" />',851 'cb' => '<input type="checkbox" alt="TODO" />', 852 852 'name' => __('Name'), 853 853 'url' => __('URL'), 854 854 'categories' => __('Categories'), … … 862 862 break; 863 863 case 'categories': 864 864 $_wp_column_headers[$page] = array( 865 'cb' => '<input type="checkbox" />',865 'cb' => '<input type="checkbox" alt="TODO" />', 866 866 'name' => __('Name'), 867 867 'description' => __('Description'), 868 868 'slug' => __('Slug'), … … 872 872 break; 873 873 case 'edit-link-categories': 874 874 $_wp_column_headers[$page] = array( 875 'cb' => '<input type="checkbox" />',875 'cb' => '<input type="checkbox" alt="TODO" />', 876 876 'name' => __('Name'), 877 877 'description' => __('Description'), 878 878 'slug' => __('Slug'), … … 882 882 break; 883 883 case 'edit-tags': 884 884 $_wp_column_headers[$page] = array( 885 'cb' => '<input type="checkbox" />',885 'cb' => '<input type="checkbox" alt="TODO" />', 886 886 'name' => __('Name'), 887 887 'description' => __('Description'), 888 888 'slug' => __('Slug'), … … 892 892 break; 893 893 case 'users': 894 894 $_wp_column_headers[$page] = array( 895 'cb' => '<input type="checkbox" />',895 'cb' => '<input type="checkbox" alt="TODO" />', 896 896 'username' => __('Username'), 897 897 'name' => __('Name'), 898 898 'email' => __('E-mail'), … … 1393 1393 1394 1394 case 'cb': 1395 1395 ?> 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> 1397 1397 <?php 1398 1398 break; 1399 1399 … … 1614 1614 1615 1615 case 'cb': 1616 1616 ?> 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> 1618 1618 <?php 1619 1619 break; 1620 1620 case 'date': … … 1917 1917 $edit .= '</div>'; 1918 1918 1919 1919 // 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}' />"; 1921 1921 1922 1922 } else { 1923 1923 $edit = '<strong>' . $user_object->user_login . '</strong>'; … … 2112 2112 case 'cb': 2113 2113 if ( !$checkbox ) break; 2114 2114 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' />"; 2116 2116 echo '</th>'; 2117 2117 break; 2118 2118 case 'comment': … … 2479 2479 <tbody> 2480 2480 <tr> 2481 2481 <td id="newmetaleft" class="left"> 2482 <label class="invisible" for="metakeyinput">__TODO__</label> 2482 2483 <?php if ( $keys ) { ?> 2483 2484 <select id="metakeyselect" name="metakeyselect" tabindex="7"> 2484 2485 <option value="#NONE#"><?php _e( '- Select -' ); ?></option> … … 2495 2496 <span id="enternew"><?php _e('Enter new'); ?></span> 2496 2497 <span id="cancelnew" class="hidden"><?php _e('Cancel'); ?></span></a> 2497 2498 <?php } else { ?> 2498 <input type="text" id="metakeyinput" name="metakeyinput" tabindex="7" value="" />2499 <input type="text" id="metakeyinput" name="metakeyinput" tabindex="7" value=""/> 2499 2500 <?php } ?> 2500 2501 </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> 2502 2506 </tr> 2503 2507 2504 2508 <tr><td colspan="2" class="submit"> … … 2557 2561 } 2558 2562 $month .= '</select>'; 2559 2563 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" />'; 2564 2568 /* translators: 1: month input, 2: day input, 3: year input, 4: hour input, 5: minute input */ 2565 2569 printf(__('%1$s%2$s, %3$s @ %4$s : %5$s'), $month, $day, $year, $hour, $minute); 2566 2570 -
wp-admin/includes/theme-install.php
147 147 * @since 2.8.0 148 148 */ 149 149 function install_theme_search_form() { 150 static $idcounter = 0; 151 $idcounter++; 152 150 153 $type = isset( $_REQUEST['type'] ) ? stripslashes( $_REQUEST['type'] ) : ''; 151 154 $term = isset( $_REQUEST['s'] ) ? stripslashes( $_REQUEST['s'] ) : ''; 152 155 ?> … … 158 161 <option value="author" <?php selected('author', $type) ?>><?php _e('Author'); ?></option> 159 162 <option value="tag" <?php selected('tag', $type) ?>><?php _e('Tag'); ?></option> 160 163 </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) ?>" /> 162 166 <input type="submit" name="search" value="<?php _ea('Search'); ?>" class="button" /> 163 167 </form> 164 168 <?php