Ticket #21340: 21340.patch
File 21340.patch, 38.1 KB (added by , 12 years ago) |
---|
-
wp-admin/edit-form-advanced.php
283 283 <div id="titlediv"> 284 284 <div id="titlewrap"> 285 285 <label class="hide-if-no-js" style="visibility:hidden" id="title-prompt-text" for="title"><?php echo apply_filters( 'enter_title_here', __( 'Enter title here' ), $post ); ?></label> 286 <input type="text" name="post_title" size="30" tabindex="1"value="<?php echo esc_attr( htmlspecialchars( $post->post_title ) ); ?>" id="title" autocomplete="off" />286 <input type="text" name="post_title" size="30" value="<?php echo esc_attr( htmlspecialchars( $post->post_title ) ); ?>" id="title" autocomplete="off" /> 287 287 </div> 288 288 <div class="inside"> 289 289 <?php … … 312 312 <?php if ( post_type_supports($post_type, 'editor') ) { ?> 313 313 <div id="postdivrich" class="postarea"> 314 314 315 <?php wp_editor($post->post_content, 'content', array('dfw' => true , 'tabindex' => 1) ); ?>315 <?php wp_editor($post->post_content, 'content', array('dfw' => true) ); ?> 316 316 317 317 <table id="post-status-info" cellspacing="0"><tbody><tr> 318 318 <td id="wp-word-count"><?php printf( __( 'Word count: %s' ), '<span class="word-count">0</span>' ); ?></td> -
wp-admin/edit-form-comment.php
31 31 <tbody> 32 32 <tr valign="top"> 33 33 <td class="first"><?php _e( 'Name:' ); ?></td> 34 <td><input type="text" name="newcomment_author" size="30" value="<?php echo esc_attr( $comment->comment_author ); ?>" tabindex="1"id="name" /></td>34 <td><input type="text" name="newcomment_author" size="30" value="<?php echo esc_attr( $comment->comment_author ); ?>" id="name" /></td> 35 35 </tr> 36 36 <tr valign="top"> 37 37 <td class="first"> … … 42 42 _e( 'E-mail:' ); 43 43 } 44 44 ?></td> 45 <td><input type="text" name="newcomment_author_email" size="30" value="<?php echo $comment->comment_author_email; ?>" tabindex="2"id="email" /></td>45 <td><input type="text" name="newcomment_author_email" size="30" value="<?php echo $comment->comment_author_email; ?>" id="email" /></td> 46 46 </tr> 47 47 <tr valign="top"> 48 48 <td class="first"> … … 53 53 } else { 54 54 _e( 'URL:' ); 55 55 } ?></td> 56 <td><input type="text" id="newcomment_author_url" name="newcomment_author_url" size="30" class="code" value="<?php echo esc_attr($comment->comment_author_url); ?>" tabindex="3"/></td>56 <td><input type="text" id="newcomment_author_url" name="newcomment_author_url" size="30" class="code" value="<?php echo esc_attr($comment->comment_author_url); ?>" /></td> 57 57 </tr> 58 58 </tbody> 59 59 </table> … … 98 98 $stamp = __('Submitted on: <b>%1$s</b>'); 99 99 $date = date_i18n( $datef, strtotime( $comment->comment_date ) ); 100 100 ?> 101 <span id="timestamp"><?php printf($stamp, $date); ?></span> <a href="#edit_timestamp" class="edit-timestamp hide-if-no-js" tabindex='4'><?php _e('Edit') ?></a>102 <div id='timestampdiv' class='hide-if-js'><?php touch_time(('editcomment' == $action), 0 , 5); ?></div>101 <span id="timestamp"><?php printf($stamp, $date); ?></span> <a href="#edit_timestamp" class="edit-timestamp hide-if-no-js"><?php _e('Edit') ?></a> 102 <div id='timestampdiv' class='hide-if-js'><?php touch_time(('editcomment' == $action), 0); ?></div> 103 103 </div> 104 104 </div> <!-- misc actions --> 105 105 <div class="clear"></div> … … 110 110 <?php echo "<a class='submitdelete deletion' href='" . wp_nonce_url("comment.php?action=" . ( !EMPTY_TRASH_DAYS ? 'deletecomment' : 'trashcomment' ) . "&c=$comment->comment_ID&_wp_original_http_referer=" . urlencode(wp_get_referer()), 'delete-comment_' . $comment->comment_ID) . "'>" . ( !EMPTY_TRASH_DAYS ? __('Delete Permanently') : __('Move to Trash') ) . "</a>\n"; ?> 111 111 </div> 112 112 <div id="publishing-action"> 113 <?php submit_button( __( 'Update' ), 'primary', 'save', false , array( 'tabindex' => '4' )); ?>113 <?php submit_button( __( 'Update' ), 'primary', 'save', false ); ?> 114 114 </div> 115 115 <div class="clear"></div> 116 116 </div> -
wp-admin/edit-link-form.php
82 82 <div id="namediv" class="stuffbox"> 83 83 <h3><label for="link_name"><?php _ex('Name', 'link name') ?></label></h3> 84 84 <div class="inside"> 85 <input type="text" name="link_name" size="30" tabindex="1"value="<?php echo esc_attr($link->link_name); ?>" id="link_name" />85 <input type="text" name="link_name" size="30" value="<?php echo esc_attr($link->link_name); ?>" id="link_name" /> 86 86 <p><?php _e('Example: Nifty blogging software'); ?></p> 87 87 </div> 88 88 </div> … … 90 90 <div id="addressdiv" class="stuffbox"> 91 91 <h3><label for="link_url"><?php _e('Web Address') ?></label></h3> 92 92 <div class="inside"> 93 <input type="text" name="link_url" size="30" class="code" tabindex="1"value="<?php echo esc_attr($link->link_url); ?>" id="link_url" />93 <input type="text" name="link_url" size="30" class="code" value="<?php echo esc_attr($link->link_url); ?>" id="link_url" /> 94 94 <p><?php _e('Example: <code>http://wordpress.org/</code> — don’t forget the <code>http://</code>'); ?></p> 95 95 </div> 96 96 </div> … … 98 98 <div id="descriptiondiv" class="stuffbox"> 99 99 <h3><label for="link_description"><?php _e('Description') ?></label></h3> 100 100 <div class="inside"> 101 <input type="text" name="link_description" size="30" tabindex="1"value="<?php echo isset($link->link_description) ? esc_attr($link->link_description) : ''; ?>" id="link_description" />101 <input type="text" name="link_description" size="30" value="<?php echo isset($link->link_description) ? esc_attr($link->link_description) : ''; ?>" id="link_description" /> 102 102 <p><?php _e('This will be shown when someone hovers over the link in the blogroll, or optionally below the link.'); ?></p> 103 103 </div> 104 104 </div> -
wp-admin/includes/class-wp-posts-list-table.php
754 754 <?php if ( !$bulk ) : ?> 755 755 <label><span class="title"><?php _e( 'Date' ); ?></span></label> 756 756 <div class="inline-edit-date"> 757 <?php touch_time( 1, 1, 4, 1 ); ?>757 <?php touch_time( 1, 1, 0, 1 ); ?> 758 758 </div> 759 759 <br class="clear" /> 760 760 <?php endif; // $bulk -
wp-admin/includes/class-wp-theme-install-list-table.php
237 237 <?php foreach ( $actions as $action ): ?> 238 238 <li><?php echo $action; ?></li> 239 239 <?php endforeach; ?> 240 <li class="hide-if-no-js"><a href="#" class="theme-detail" tabindex='4'><?php _e('Details') ?></a></li>240 <li class="hide-if-no-js"><a href="#" class="theme-detail"><?php _e('Details') ?></a></li> 241 241 </ul> 242 242 </div> 243 243 -
wp-admin/includes/class-wp-themes-list-table.php
171 171 <?php foreach ( $actions as $action ): ?> 172 172 <li><?php echo $action; ?></li> 173 173 <?php endforeach; ?> 174 <li class="hide-if-no-js"><a href="#" class="theme-detail" tabindex='4'><?php _e('Details') ?></a></li>174 <li class="hide-if-no-js"><a href="#" class="theme-detail"><?php _e('Details') ?></a></li> 175 175 </ul> 176 176 <?php echo $delete_action; ?> 177 177 -
wp-admin/includes/dashboard.php
505 505 <form name="post" action="<?php echo esc_url( admin_url( 'post.php' ) ); ?>" method="post" id="quick-press"> 506 506 <h4 id="quick-post-title"><label for="title"><?php _e('Title') ?></label></h4> 507 507 <div class="input-text-wrap"> 508 <input type="text" name="post_title" id="title" tabindex="1"autocomplete="off" value="<?php echo esc_attr( $post->post_title ); ?>" />508 <input type="text" name="post_title" id="title" autocomplete="off" value="<?php echo esc_attr( $post->post_title ); ?>" /> 509 509 </div> 510 510 511 511 <?php if ( current_user_can( 'upload_files' ) ) : ?> … … 516 516 517 517 <h4 id="content-label"><label for="content"><?php _e('Content') ?></label></h4> 518 518 <div class="textarea-wrap"> 519 <textarea name="content" id="content" class="mceEditor" rows="3" cols="15" tabindex="2"><?php echo esc_textarea( $post->post_content ); ?></textarea>519 <textarea name="content" id="content" class="mceEditor" rows="3" cols="15"><?php echo esc_textarea( $post->post_content ); ?></textarea> 520 520 </div> 521 521 522 522 <script type="text/javascript">edCanvas = document.getElementById('content');edInsertContent = null;</script> 523 523 524 524 <h4><label for="tags-input"><?php _e('Tags') ?></label></h4> 525 525 <div class="input-text-wrap"> 526 <input type="text" name="tags_input" id="tags-input" tabindex="3"value="<?php echo get_tags_to_edit( $post->ID ); ?>" />526 <input type="text" name="tags_input" id="tags-input" value="<?php echo get_tags_to_edit( $post->ID ); ?>" /> 527 527 </div> 528 528 529 529 <p class="submit"> … … 531 531 <input type="hidden" name="post_ID" value="<?php echo $post_ID; ?>" /> 532 532 <input type="hidden" name="post_type" value="post" /> 533 533 <?php wp_nonce_field('add-post'); ?> 534 <?php submit_button( __( 'Save Draft' ), 'button', 'save', false, array( 'id' => 'save-post' , 'tabindex'=> 4) ); ?>534 <?php submit_button( __( 'Save Draft' ), 'button', 'save', false, array( 'id' => 'save-post' ) ); ?> 535 535 <input type="reset" value="<?php esc_attr_e( 'Reset' ); ?>" class="button" /> 536 536 <span id="publishing-action"> 537 <input type="submit" name="publish" id="publish" accesskey="p" tabindex="5"class="button-primary" value="<?php current_user_can('publish_posts') ? esc_attr_e('Publish') : esc_attr_e('Submit for Review'); ?>" />537 <input type="submit" name="publish" id="publish" accesskey="p" class="button-primary" value="<?php current_user_can('publish_posts') ? esc_attr_e('Publish') : esc_attr_e('Submit for Review'); ?>" /> 538 538 <img class="waiting" src="<?php echo esc_url( admin_url( 'images/wpspin_light.gif' ) ); ?>" alt="" /> 539 539 </span> 540 540 <br class="clear" /> -
wp-admin/includes/meta-boxes.php
28 28 <div id="minor-publishing-actions"> 29 29 <div id="save-action"> 30 30 <?php if ( 'publish' != $post->post_status && 'future' != $post->post_status && 'pending' != $post->post_status ) { ?> 31 <input <?php if ( 'private' == $post->post_status ) { ?>style="display:none"<?php } ?> type="submit" name="save" id="save-post" value="<?php esc_attr_e('Save Draft'); ?>" tabindex="4"class="button button-highlighted" />31 <input <?php if ( 'private' == $post->post_status ) { ?>style="display:none"<?php } ?> type="submit" name="save" id="save-post" value="<?php esc_attr_e('Save Draft'); ?>" class="button button-highlighted" /> 32 32 <?php } elseif ( 'pending' == $post->post_status && $can_publish ) { ?> 33 <input type="submit" name="save" id="save-post" value="<?php esc_attr_e('Save as Pending'); ?>" tabindex="4"class="button button-highlighted" />33 <input type="submit" name="save" id="save-post" value="<?php esc_attr_e('Save as Pending'); ?>" class="button button-highlighted" /> 34 34 <?php } ?> 35 35 <img src="<?php echo esc_url( admin_url( 'images/wpspin_light.gif' ) ); ?>" class="ajax-loading" id="draft-ajax-loading" alt="" /> 36 36 </div> … … 48 48 $preview_button = __( 'Preview' ); 49 49 } 50 50 ?> 51 <a class="preview button" href="<?php echo $preview_link; ?>" target="wp-preview" id="post-preview" tabindex="4"><?php echo $preview_button; ?></a>51 <a class="preview button" href="<?php echo $preview_link; ?>" target="wp-preview" id="post-preview"><?php echo $preview_button; ?></a> 52 52 <input type="hidden" name="wp-preview" id="wp-preview" value="" /> 53 53 </div> 54 54 <?php endif; // public post type ?> … … 81 81 ?> 82 82 </span> 83 83 <?php if ( 'publish' == $post->post_status || 'private' == $post->post_status || $can_publish ) { ?> 84 <a href="#post_status" <?php if ( 'private' == $post->post_status ) { ?>style="display:none;" <?php } ?>class="edit-post-status hide-if-no-js" tabindex='4'><?php _e('Edit') ?></a>84 <a href="#post_status" <?php if ( 'private' == $post->post_status ) { ?>style="display:none;" <?php } ?>class="edit-post-status hide-if-no-js"><?php _e('Edit') ?></a> 85 85 86 86 <div id="post-status-select" class="hide-if-js"> 87 87 <input type="hidden" name="hidden_post_status" id="hidden_post_status" value="<?php echo esc_attr( ('auto-draft' == $post->post_status ) ? 'draft' : $post->post_status); ?>" /> 88 <select name='post_status' id='post_status' tabindex='4'>88 <select name='post_status' id='post_status'> 89 89 <?php if ( 'publish' == $post->post_status ) : ?> 90 90 <option<?php selected( $post->post_status, 'publish' ); ?> value='publish'><?php _e('Published') ?></option> 91 91 <?php elseif ( 'private' == $post->post_status ) : ?> … … 137 137 <input type="hidden" name="hidden_post_visibility" id="hidden-post-visibility" value="<?php echo esc_attr( $visibility ); ?>" /> 138 138 <input type="radio" name="visibility" id="visibility-radio-public" value="public" <?php checked( $visibility, 'public' ); ?> /> <label for="visibility-radio-public" class="selectit"><?php _e('Public'); ?></label><br /> 139 139 <?php if ( $post_type == 'post' && current_user_can( 'edit_others_posts' ) ) : ?> 140 <span id="sticky-span"><input id="sticky" name="sticky" type="checkbox" value="sticky" <?php checked( is_sticky( $post->ID ) ); ?> tabindex="4"/> <label for="sticky" class="selectit"><?php _e( 'Stick this post to the front page' ); ?></label><br /></span>140 <span id="sticky-span"><input id="sticky" name="sticky" type="checkbox" value="sticky" <?php checked( is_sticky( $post->ID ) ); ?> /> <label for="sticky" class="selectit"><?php _e( 'Stick this post to the front page' ); ?></label><br /></span> 141 141 <?php endif; ?> 142 142 <input type="radio" name="visibility" id="visibility-radio-password" value="password" <?php checked( $visibility, 'password' ); ?> /> <label for="visibility-radio-password" class="selectit"><?php _e('Password protected'); ?></label><br /> 143 143 <span id="password-span"><label for="post_password"><?php _e('Password:'); ?></label> <input type="text" name="post_password" id="post_password" value="<?php echo esc_attr($post->post_password); ?>" /><br /></span> … … 177 177 <div class="misc-pub-section curtime"> 178 178 <span id="timestamp"> 179 179 <?php printf($stamp, $date); ?></span> 180 <a href="#edit_timestamp" class="edit-timestamp hide-if-no-js" tabindex='4'><?php _e('Edit') ?></a>181 <div id="timestampdiv" class="hide-if-js"><?php touch_time(($action == 'edit'), 1,4); ?></div>180 <a href="#edit_timestamp" class="edit-timestamp hide-if-no-js"><?php _e('Edit') ?></a> 181 <div id="timestampdiv" class="hide-if-js"><?php touch_time(($action == 'edit'), 1); ?></div> 182 182 </div><?php // /misc-pub-section ?> 183 183 <?php endif; ?> 184 184 … … 208 208 if ( $can_publish ) : 209 209 if ( !empty($post->post_date_gmt) && time() < strtotime( $post->post_date_gmt . ' +0000' ) ) : ?> 210 210 <input name="original_publish" type="hidden" id="original_publish" value="<?php esc_attr_e('Schedule') ?>" /> 211 <?php submit_button( __( 'Schedule' ), 'primary', 'publish', false, array( ' tabindex' => '5', 'accesskey' => 'p' ) ); ?>211 <?php submit_button( __( 'Schedule' ), 'primary', 'publish', false, array( 'accesskey' => 'p' ) ); ?> 212 212 <?php else : ?> 213 213 <input name="original_publish" type="hidden" id="original_publish" value="<?php esc_attr_e('Publish') ?>" /> 214 <?php submit_button( __( 'Publish' ), 'primary', 'publish', false, array( ' tabindex' => '5', 'accesskey' => 'p' ) ); ?>214 <?php submit_button( __( 'Publish' ), 'primary', 'publish', false, array( 'accesskey' => 'p' ) ); ?> 215 215 <?php endif; 216 216 else : ?> 217 217 <input name="original_publish" type="hidden" id="original_publish" value="<?php esc_attr_e('Submit for Review') ?>" /> 218 <?php submit_button( __( 'Submit for Review' ), 'primary', 'publish', false, array( ' tabindex' => '5', 'accesskey' => 'p' ) ); ?>218 <?php submit_button( __( 'Submit for Review' ), 'primary', 'publish', false, array( 'accesskey' => 'p' ) ); ?> 219 219 <?php 220 220 endif; 221 221 } else { ?> 222 222 <input name="original_publish" type="hidden" id="original_publish" value="<?php esc_attr_e('Update') ?>" /> 223 <input name="save" type="submit" class="button-primary" id="publish" tabindex="5"accesskey="p" value="<?php esc_attr_e('Update') ?>" />223 <input name="save" type="submit" class="button-primary" id="publish" accesskey="p" value="<?php esc_attr_e('Update') ?>" /> 224 224 <?php 225 225 } ?> 226 226 </div> … … 288 288 <label class="screen-reader-text" for="new-tag-<?php echo $tax_name; ?>"><?php echo $box['title']; ?></label> 289 289 <div class="taghint"><?php echo $taxonomy->labels->add_new_item; ?></div> 290 290 <p><input type="text" id="new-tag-<?php echo $tax_name; ?>" name="newtag[<?php echo $tax_name; ?>]" class="newtag form-input-tip" size="16" autocomplete="off" value="" /> 291 <input type="button" class="button tagadd" value="<?php esc_attr_e('Add'); ?>" tabindex="3"/></p>291 <input type="button" class="button tagadd" value="<?php esc_attr_e('Add'); ?>" /></p> 292 292 </div> 293 293 <p class="howto"><?php echo esc_attr( $taxonomy->labels->separate_items_with_commas ); ?></p> 294 294 <?php endif; ?> … … 320 320 ?> 321 321 <div id="taxonomy-<?php echo $taxonomy; ?>" class="categorydiv"> 322 322 <ul id="<?php echo $taxonomy; ?>-tabs" class="category-tabs"> 323 <li class="tabs"><a href="#<?php echo $taxonomy; ?>-all" tabindex="3"><?php echo $tax->labels->all_items; ?></a></li>324 <li class="hide-if-no-js"><a href="#<?php echo $taxonomy; ?>-pop" tabindex="3"><?php _e( 'Most Used' ); ?></a></li>323 <li class="tabs"><a href="#<?php echo $taxonomy; ?>-all"><?php echo $tax->labels->all_items; ?></a></li> 324 <li class="hide-if-no-js"><a href="#<?php echo $taxonomy; ?>-pop"><?php _e( 'Most Used' ); ?></a></li> 325 325 </ul> 326 326 327 327 <div id="<?php echo $taxonomy; ?>-pop" class="tabs-panel" style="display: none;"> … … 342 342 <?php if ( current_user_can($tax->cap->edit_terms) ) : ?> 343 343 <div id="<?php echo $taxonomy; ?>-adder" class="wp-hidden-children"> 344 344 <h4> 345 <a id="<?php echo $taxonomy; ?>-add-toggle" href="#<?php echo $taxonomy; ?>-add" class="hide-if-no-js" tabindex="3">345 <a id="<?php echo $taxonomy; ?>-add-toggle" href="#<?php echo $taxonomy; ?>-add" class="hide-if-no-js"> 346 346 <?php 347 347 /* translators: %s: add new taxonomy label */ 348 348 printf( __( '+ %s' ), $tax->labels->add_new_item ); … … 351 351 </h4> 352 352 <p id="<?php echo $taxonomy; ?>-add" class="category-add wp-hidden-child"> 353 353 <label class="screen-reader-text" for="new<?php echo $taxonomy; ?>"><?php echo $tax->labels->add_new_item; ?></label> 354 <input type="text" name="new<?php echo $taxonomy; ?>" id="new<?php echo $taxonomy; ?>" class="form-required form-input-tip" value="<?php echo esc_attr( $tax->labels->new_item_name ); ?>" tabindex="3"aria-required="true"/>354 <input type="text" name="new<?php echo $taxonomy; ?>" id="new<?php echo $taxonomy; ?>" class="form-required form-input-tip" value="<?php echo esc_attr( $tax->labels->new_item_name ); ?>" aria-required="true"/> 355 355 <label class="screen-reader-text" for="new<?php echo $taxonomy; ?>_parent"> 356 356 <?php echo $tax->labels->parent_item_colon; ?> 357 357 </label> 358 <?php wp_dropdown_categories( array( 'taxonomy' => $taxonomy, 'hide_empty' => 0, 'name' => 'new'.$taxonomy.'_parent', 'orderby' => 'name', 'hierarchical' => 1, 'show_option_none' => '— ' . $tax->labels->parent_item . ' —' , 'tab_index' => 3) ); ?>359 <input type="button" id="<?php echo $taxonomy; ?>-add-submit" class="add:<?php echo $taxonomy ?>checklist:<?php echo $taxonomy ?>-add button category-add-submit" value="<?php echo esc_attr( $tax->labels->add_new_item ); ?>" tabindex="3"/>358 <?php wp_dropdown_categories( array( 'taxonomy' => $taxonomy, 'hide_empty' => 0, 'name' => 'new'.$taxonomy.'_parent', 'orderby' => 'name', 'hierarchical' => 1, 'show_option_none' => '— ' . $tax->labels->parent_item . ' —' ) ); ?> 359 <input type="button" id="<?php echo $taxonomy; ?>-add-submit" class="add:<?php echo $taxonomy ?>checklist:<?php echo $taxonomy ?>-add button category-add-submit" value="<?php echo esc_attr( $tax->labels->add_new_item ); ?>" /> 360 360 <?php wp_nonce_field( 'add-'.$taxonomy, '_ajax_nonce-add-'.$taxonomy, false ); ?> 361 361 <span id="<?php echo $taxonomy; ?>-ajax-response"></span> 362 362 </p> … … 375 375 */ 376 376 function post_excerpt_meta_box($post) { 377 377 ?> 378 <label class="screen-reader-text" for="excerpt"><?php _e('Excerpt') ?></label><textarea rows="1" cols="40" name="excerpt" tabindex="6"id="excerpt"><?php echo $post->post_excerpt; // textarea_escaped ?></textarea>378 <label class="screen-reader-text" for="excerpt"><?php _e('Excerpt') ?></label><textarea rows="1" cols="40" name="excerpt" id="excerpt"><?php echo $post->post_excerpt; // textarea_escaped ?></textarea> 379 379 <p><?php _e('Excerpts are optional hand-crafted summaries of your content that can be used in your theme. <a href="http://codex.wordpress.org/Excerpt" target="_blank">Learn more about manual excerpts.</a>'); ?></p> 380 380 <?php 381 381 } … … 388 388 * @param object $post 389 389 */ 390 390 function post_trackback_meta_box($post) { 391 $form_trackback = '<input type="text" name="trackback_url" id="trackback_url" class="code" tabindex="7"value="'. esc_attr( str_replace("\n", ' ', $post->to_ping) ) .'" />';391 $form_trackback = '<input type="text" name="trackback_url" id="trackback_url" class="code" value="'. esc_attr( str_replace("\n", ' ', $post->to_ping) ) .'" />'; 392 392 if ('' != $post->pinged) { 393 393 $pings = '<p>'. __('Already pinged:') . '</p><ul>'; 394 394 $already_pinged = explode("\n", trim($post->pinged)); … … 613 613 <div id="minor-publishing-actions"> 614 614 <div id="preview-action"> 615 615 <?php if ( !empty($link->link_id) ) { ?> 616 <a class="preview button" href="<?php echo $link->link_url; ?>" target="_blank" tabindex="4"><?php _e('Visit Link'); ?></a>616 <a class="preview button" href="<?php echo $link->link_url; ?>" target="_blank"><?php _e('Visit Link'); ?></a> 617 617 <?php } ?> 618 618 </div> 619 619 <div class="clear"></div> … … 638 638 639 639 <div id="publishing-action"> 640 640 <?php if ( !empty($link->link_id) ) { ?> 641 <input name="save" type="submit" class="button-primary" id="publish" tabindex="4"accesskey="p" value="<?php esc_attr_e('Update Link') ?>" />641 <input name="save" type="submit" class="button-primary" id="publish" accesskey="p" value="<?php esc_attr_e('Update Link') ?>" /> 642 642 <?php } else { ?> 643 <input name="save" type="submit" class="button-primary" id="publish" tabindex="4"accesskey="p" value="<?php esc_attr_e('Add Link') ?>" />643 <input name="save" type="submit" class="button-primary" id="publish" accesskey="p" value="<?php esc_attr_e('Add Link') ?>" /> 644 644 <?php } ?> 645 645 </div> 646 646 <div class="clear"></div> -
wp-admin/includes/template.php
332 332 <div id="edithead" style="display:none;"> 333 333 <div class="inside"> 334 334 <label for="author"><?php _e('Name') ?></label> 335 <input type="text" name="newcomment_author" size="50" value="" tabindex="101"id="author" />335 <input type="text" name="newcomment_author" size="50" value="" id="author" /> 336 336 </div> 337 337 338 338 <div class="inside"> 339 339 <label for="author-email"><?php _e('E-mail') ?></label> 340 <input type="text" name="newcomment_author_email" size="50" value="" tabindex="102"id="author-email" />340 <input type="text" name="newcomment_author_email" size="50" value="" id="author-email" /> 341 341 </div> 342 342 343 343 <div class="inside"> 344 344 <label for="author-url"><?php _e('URL') ?></label> 345 <input type="text" id="author-url" name="newcomment_author_url" size="103" value="" tabindex="103"/>345 <input type="text" id="author-url" name="newcomment_author_url" size="103" value="" /> 346 346 </div> 347 347 <div style="clear:both;"></div> 348 348 </div> … … 350 350 <div id="replycontainer"> 351 351 <?php 352 352 $quicktags_settings = array( 'buttons' => 'strong,em,link,block,del,ins,img,ul,ol,li,code,spell,close' ); 353 wp_editor( '', 'replycontent', array( 'media_buttons' => false, 'tinymce' => false, 'quicktags' => $quicktags_settings , 'tabindex' => 104) );353 wp_editor( '', 'replycontent', array( 'media_buttons' => false, 'tinymce' => false, 'quicktags' => $quicktags_settings ) ); 354 354 ?> 355 355 </div> 356 356 357 357 <p id="replysubmit" class="submit"> 358 <a href="#comments-form" class="cancel button-secondary alignleft" tabindex="106"><?php _e('Cancel'); ?></a>359 <a href="#comments-form" class="save button-primary alignright" tabindex="104">358 <a href="#comments-form" class="cancel button-secondary alignleft"><?php _e('Cancel'); ?></a> 359 <a href="#comments-form" class="save button-primary alignright"> 360 360 <span id="addbtn" style="display:none;"><?php _e('Add Comment'); ?></span> 361 361 <span id="savebtn" style="display:none;"><?php _e('Update Comment'); ?></span> 362 362 <span id="replybtn" style="display:none;"><?php _e('Submit Reply'); ?></span></a> … … 489 489 $delete_nonce = wp_create_nonce( 'delete-meta_' . $entry['meta_id'] ); 490 490 491 491 $r .= "\n\t<tr id='meta-{$entry['meta_id']}' class='$style'>"; 492 $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]' t abindex='6' type='text' size='20' value='{$entry['meta_key']}' />";492 $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]' type='text' size='20' value='{$entry['meta_key']}' />"; 493 493 494 494 $r .= "\n\t\t<div class='submit'>"; 495 $r .= get_submit_button( __( 'Delete' ), "delete:the-list:meta-{$entry['meta_id']}::_ajax_nonce=$delete_nonce deletemeta", "deletemeta[{$entry['meta_id']}]", false , array( 'tabindex' => '6' ));495 $r .= get_submit_button( __( 'Delete' ), "delete:the-list:meta-{$entry['meta_id']}::_ajax_nonce=$delete_nonce deletemeta", "deletemeta[{$entry['meta_id']}]", false ); 496 496 $r .= "\n\t\t"; 497 $r .= get_submit_button( __( 'Update' ), "add:the-list:meta-{$entry['meta_id']}::_ajax_nonce-add-meta=$update_nonce updatemeta" , 'updatemeta', false , array( 'tabindex' => '6' ));497 $r .= get_submit_button( __( 'Update' ), "add:the-list:meta-{$entry['meta_id']}::_ajax_nonce-add-meta=$update_nonce updatemeta" , 'updatemeta', false ); 498 498 $r .= "</div>"; 499 499 $r .= wp_nonce_field( 'change-meta', '_ajax_nonce', false, false ); 500 500 $r .= "</td>"; 501 501 502 $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>";502 $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]' rows='2' cols='30'>{$entry['meta_value']}</textarea></td>\n\t</tr>"; 503 503 return $r; 504 504 } 505 505 … … 534 534 <tr> 535 535 <td id="newmetaleft" class="left"> 536 536 <?php if ( $keys ) { ?> 537 <select id="metakeyselect" name="metakeyselect" tabindex="7">537 <select id="metakeyselect" name="metakeyselect"> 538 538 <option value="#NONE#"><?php _e( '— Select —' ); ?></option> 539 539 <?php 540 540 … … 543 543 } 544 544 ?> 545 545 </select> 546 <input class="hide-if-js" type="text" id="metakeyinput" name="metakeyinput" tabindex="7"value="" />546 <input class="hide-if-js" type="text" id="metakeyinput" name="metakeyinput" value="" /> 547 547 <a href="#postcustomstuff" class="hide-if-no-js" onclick="jQuery('#metakeyinput, #metakeyselect, #enternew, #cancelnew').toggle();return false;"> 548 548 <span id="enternew"><?php _e('Enter new'); ?></span> 549 549 <span id="cancelnew" class="hidden"><?php _e('Cancel'); ?></span></a> 550 550 <?php } else { ?> 551 <input type="text" id="metakeyinput" name="metakeyinput" tabindex="7"value="" />551 <input type="text" id="metakeyinput" name="metakeyinput" value="" /> 552 552 <?php } ?> 553 553 </td> 554 <td><textarea id="metavalue" name="metavalue" rows="2" cols="25" tabindex="8"></textarea></td>554 <td><textarea id="metavalue" name="metavalue" rows="2" cols="25"></textarea></td> 555 555 </tr> 556 556 557 557 <tr><td colspan="2" class="submit"> 558 <?php submit_button( __( 'Add Custom Field' ), 'add:the-list:newmeta', 'addmeta', false, array( 'id' => 'addmetasub' , 'tabindex' => '9') ); ?>558 <?php submit_button( __( 'Add Custom Field' ), 'add:the-list:newmeta', 'addmeta', false, array( 'id' => 'addmetasub' ) ); ?> 559 559 <?php wp_nonce_field( 'add-meta', '_ajax_nonce-add-meta', false ); ?> 560 560 </td></tr> 561 561 </tbody> -
wp-admin/menu-header.php
41 41 foreach ( $menu as $key => $item ) { 42 42 $admin_is_parent = false; 43 43 $class = array(); 44 $aria_attributes = ' tabindex="1"';44 $aria_attributes = ''; 45 45 46 46 if ( $first ) { 47 47 $class[] = 'wp-first-item'; … … 59 59 } else { 60 60 $class[] = 'wp-not-current-submenu'; 61 61 if ( ! empty( $submenu_items ) ) 62 $aria_attributes .= ' 62 $aria_attributes .= 'aria-haspopup="true"'; 63 63 } 64 64 65 65 if ( ! empty( $item[4] ) ) … … 112 112 if ( ! current_user_can( $sub_item[1] ) ) 113 113 continue; 114 114 115 $aria_attributes = 'tabindex="1"';116 115 $class = array(); 117 116 if ( $first ) { 118 117 $class[] = 'wp-first-item'; … … 156 155 $sub_item_url = add_query_arg( array('page' => $sub_item[2]), 'admin.php' ); 157 156 158 157 $sub_item_url = esc_url( $sub_item_url ); 159 echo "<li$class><a href='$sub_item_url'$class $aria_attributes>$title</a></li>";158 echo "<li$class><a href='$sub_item_url'$class>$title</a></li>"; 160 159 } else { 161 echo "<li$class><a href='{$sub_item[2]}'$class $aria_attributes>$title</a></li>";160 echo "<li$class><a href='{$sub_item[2]}'$class>$title</a></li>"; 162 161 } 163 162 } 164 163 echo "</ul></div></div>"; -
wp-admin/plugin-editor.php
226 226 </div> 227 227 <form name="template" id="template" action="plugin-editor.php" method="post"> 228 228 <?php wp_nonce_field('edit-plugin_' . $file) ?> 229 <div><textarea cols="70" rows="25" name="newcontent" id="newcontent" tabindex="1"><?php echo $content ?></textarea>229 <div><textarea cols="70" rows="25" name="newcontent" id="newcontent"><?php echo $content ?></textarea> 230 230 <input type="hidden" name="action" value="update" /> 231 231 <input type="hidden" name="file" value="<?php echo esc_attr($file) ?>" /> 232 232 <input type="hidden" name="plugin" value="<?php echo esc_attr($plugin) ?>" /> … … 243 243 <?php 244 244 if ( isset($_GET['phperror']) ) { 245 245 echo "<input type='hidden' name='phperror' value='1' />"; 246 submit_button( __( 'Update File and Attempt to Reactivate' ), 'primary', 'submit', false , array( 'tabindex' => '2' ));246 submit_button( __( 'Update File and Attempt to Reactivate' ), 'primary', 'submit', false ); 247 247 } else { 248 submit_button( __( 'Update File' ), 'primary', 'submit', false , array( 'tabindex' => '2' ));248 submit_button( __( 'Update File' ), 'primary', 'submit', false ); 249 249 } 250 250 ?> 251 251 </p> -
wp-admin/press-this.php
495 495 <div id="taxonomy-category" class="categorydiv"> 496 496 497 497 <ul id="category-tabs" class="category-tabs"> 498 <li class="tabs"><a href="#category-all" tabindex="3"><?php echo $tax->labels->all_items; ?></a></li>499 <li class="hide-if-no-js"><a href="#category-pop" tabindex="3"><?php _e( 'Most Used' ); ?></a></li>498 <li class="tabs"><a href="#category-all"><?php echo $tax->labels->all_items; ?></a></li> 499 <li class="hide-if-no-js"><a href="#category-pop"><?php _e( 'Most Used' ); ?></a></li> 500 500 </ul> 501 501 502 502 <div id="category-pop" class="tabs-panel" style="display: none;"> … … 517 517 <?php if ( current_user_can($tax->cap->edit_terms) ) : ?> 518 518 <div id="category-adder" class="wp-hidden-children"> 519 519 <h4> 520 <a id="category-add-toggle" href="#category-add" class="hide-if-no-js" tabindex="3">520 <a id="category-add-toggle" href="#category-add" class="hide-if-no-js"> 521 521 <?php printf( __( '+ %s' ), $tax->labels->add_new_item ); ?> 522 522 </a> 523 523 </h4> 524 524 <p id="category-add" class="category-add wp-hidden-child"> 525 525 <label class="screen-reader-text" for="newcategory"><?php echo $tax->labels->add_new_item; ?></label> 526 <input type="text" name="newcategory" id="newcategory" class="form-required form-input-tip" value="<?php echo esc_attr( $tax->labels->new_item_name ); ?>" tabindex="3"aria-required="true"/>526 <input type="text" name="newcategory" id="newcategory" class="form-required form-input-tip" value="<?php echo esc_attr( $tax->labels->new_item_name ); ?>" aria-required="true"/> 527 527 <label class="screen-reader-text" for="newcategory_parent"> 528 528 <?php echo $tax->labels->parent_item_colon; ?> 529 529 </label> 530 530 <?php wp_dropdown_categories( array( 'taxonomy' => 'category', 'hide_empty' => 0, 'name' => 'newcategory_parent', 'orderby' => 'name', 'hierarchical' => 1, 'show_option_none' => '— ' . $tax->labels->parent_item . ' —', 'tab_index' => 3 ) ); ?> 531 <input type="button" id="category-add-submit" class="add:categorychecklist:category-add button category-add-submit" value="<?php echo esc_attr( $tax->labels->add_new_item ); ?>" tabindex="3"/>531 <input type="button" id="category-add-submit" class="add:categorychecklist:category-add button category-add-submit" value="<?php echo esc_attr( $tax->labels->add_new_item ); ?>" /> 532 532 <?php wp_nonce_field( 'add-category', '_ajax_nonce-add-category', false ); ?> 533 533 <span id="category-ajax-response"></span> 534 534 </p> … … 548 548 <input type="hidden" name="tax_input[post_tag]" class="the-tags" id="tax-input[post_tag]" value="" /> 549 549 <div class="ajaxtag"> 550 550 <input type="text" name="newtag[post_tag]" class="newtag form-input-tip" size="16" autocomplete="off" value="" /> 551 <input type="button" class="button tagadd" value="<?php esc_attr_e('Add'); ?>" tabindex="3"/>551 <input type="button" class="button tagadd" value="<?php esc_attr_e('Add'); ?>" /> 552 552 </div> 553 553 </div> 554 554 <div class="tagchecklist"></div> -
wp-admin/theme-editor.php
198 198 else : ?> 199 199 <form name="template" id="template" action="theme-editor.php" method="post"> 200 200 <?php wp_nonce_field( 'edit-theme_' . $file . $stylesheet ); ?> 201 <div><textarea cols="70" rows="30" name="newcontent" id="newcontent" tabindex="1"><?php echo $content ?></textarea>201 <div><textarea cols="70" rows="30" name="newcontent" id="newcontent"><?php echo $content ?></textarea> 202 202 <input type="hidden" name="action" value="update" /> 203 203 <input type="hidden" name="file" value="<?php echo esc_attr( $relative_file ); ?>" /> 204 204 <input type="hidden" name="theme" value="<?php echo esc_attr( $theme->get_stylesheet() ); ?>" /> … … 219 219 <?php endif; ?> 220 220 <?php 221 221 if ( is_writeable( $file ) ) : 222 submit_button( __( 'Update File' ), 'primary', 'submit', true , array( 'tabindex' => '2' ));222 submit_button( __( 'Update File' ), 'primary', 'submit', true ); 223 223 else : ?> 224 224 <p><em><?php _e('You need to make this file writable before you can save your changes. See <a href="http://codex.wordpress.org/Changing_File_Permissions">the Codex</a> for more information.'); ?></em></p> 225 225 <?php endif; ?> -
wp-includes/class-wp-editor.php
768 768 <div id="link-options"> 769 769 <p class="howto"><?php _e( 'Enter the destination URL' ); ?></p> 770 770 <div> 771 <label><span><?php _e( 'URL' ); ?></span><input id="url-field" type="text" tabindex="10"name="href" /></label>771 <label><span><?php _e( 'URL' ); ?></span><input id="url-field" type="text" name="href" /></label> 772 772 </div> 773 773 <div> 774 <label><span><?php _e( 'Title' ); ?></span><input id="link-title-field" type="text" tabindex="20"name="linktitle" /></label>774 <label><span><?php _e( 'Title' ); ?></span><input id="link-title-field" type="text" name="linktitle" /></label> 775 775 </div> 776 776 <div class="link-target"> 777 <label><input type="checkbox" id="link-target-checkbox" tabindex="30"/> <?php _e( 'Open link in a new window/tab' ); ?></label>777 <label><input type="checkbox" id="link-target-checkbox" /> <?php _e( 'Open link in a new window/tab' ); ?></label> 778 778 </div> 779 779 </div> 780 780 <?php $show_internal = '1' == get_user_setting( 'wplink', '0' ); ?> … … 783 783 <div class="link-search-wrapper"> 784 784 <label> 785 785 <span><?php _e( 'Search' ); ?></span> 786 <input type="search" id="search-field" class="link-search-field" tabindex="60"autocomplete="off" />786 <input type="search" id="search-field" class="link-search-field" autocomplete="off" /> 787 787 <img class="waiting" src="<?php echo esc_url( admin_url( 'images/wpspin_light.gif' ) ); ?>" alt="" /> 788 788 </label> 789 789 </div> … … 807 807 <a class="submitdelete deletion" href="#"><?php _e( 'Cancel' ); ?></a> 808 808 </div> 809 809 <div id="wp-link-update"> 810 <input type="submit" tabindex="100"value="<?php esc_attr_e( 'Add Link' ); ?>" class="button-primary" id="wp-link-submit" name="wp-link-submit">810 <input type="submit" value="<?php esc_attr_e( 'Add Link' ); ?>" class="button-primary" id="wp-link-submit" name="wp-link-submit"> 811 811 </div> 812 812 </div> 813 813 </form>