Make WordPress Core


Ignore:
Timestamp:
03/22/2008 09:14:49 AM (18 years ago)
Author:
westi
Message:

Improve the tabindex's on the Write>Post page. Need to do the others too.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/category-template.php

    r7130 r7472  
    217217        'selected' => 0, 'hierarchical' => 0,
    218218        'name' => 'cat', 'class' => 'postform',
    219         'depth' => 0
     219        'depth' => 0, 'tab_index' => 0
    220220    );
    221221
     
    226226    extract( $r );
    227227
     228    $tab_index_attribute = '';
     229    if ( (int) $tab_index > 0 )
     230        $tab_index_attribute = " tabindex=\"$tab_index\"";
     231
    228232    $categories = get_categories($r);
    229233
    230234    $output = '';
    231235    if ( ! empty($categories) ) {
    232         $output = "<select name='$name' id='$name' class='$class'>\n";
     236        $output = "<select name='$name' id='$name' class='$class' $tab_index_attribute>\n";
    233237
    234238        if ( $show_option_all ) {
Note: See TracChangeset for help on using the changeset viewer.