Make WordPress Core

Changeset 7032


Ignore:
Timestamp:
02/26/2008 04:53:48 AM (18 years ago)
Author:
ryan
Message:

Fix edit comment form tab indices. fixes #5712

Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/edit-form-comment.php

    r6970 r7032  
    8686<h3><?php _e('URL') ?></h3>
    8787<div class="inside">
    88 <input type="text" id="newcomment_author_url" name="newcomment_author_url" size="30" value="<?php echo attribute_escape( $comment->comment_author_url ); ?>" tabindex="2" />
     88<input type="text" id="newcomment_author_url" name="newcomment_author_url" size="30" value="<?php echo attribute_escape( $comment->comment_author_url ); ?>" tabindex="3" />
    8989</div>
    9090</div>
     
    9292<div id="postdiv" class="postarea">
    9393<h3><?php _e('Comment') ?></h3>
    94 <?php the_editor($comment->comment_content, 'content', 'newcomment_author_url', false); ?>
     94<?php the_editor($comment->comment_content, 'content', 'newcomment_author_url', false, 4); ?>
    9595<?php wp_nonce_field( 'closedpostboxes', 'closedpostboxesnonce', false ); ?>
    9696</div>
  • trunk/wp-includes/general-template.php

    r6974 r7032  
    919919}
    920920
    921 function the_editor($content, $id = 'content', $prev_id = 'title', $media_buttons = true) {
     921function the_editor($content, $id = 'content', $prev_id = 'title', $media_buttons = true, $tab_index = 2) {
    922922    $rows = get_option('default_post_edit_rows');
    923923    if (($rows < 3) || ($rows > 100))
     
    961961    <?php endif; // 'html' != $wp_default_editor
    962962
    963     $the_editor = apply_filters('the_editor', "<div id='editorcontainer'><textarea class='' $rows cols='40' name='$id' tabindex='2' id='$id'>%s</textarea></div>\n");
     963    $the_editor = apply_filters('the_editor', "<div id='editorcontainer'><textarea class='' $rows cols='40' name='$id' tabindex='$tab_index' id='$id'>%s</textarea></div>\n");
    964964    $the_editor_content = apply_filters('the_editor_content', $content);
    965965
Note: See TracChangeset for help on using the changeset viewer.