diff --git a/wp-admin/edit-form-advanced.php b/wp-admin/edit-form-advanced.php
index 1c7e5eb25d..4eae30f645 100644
--- a/wp-admin/edit-form-advanced.php
+++ b/wp-admin/edit-form-advanced.php
@@ -84,7 +84,7 @@ else
@@ -238,7 +238,7 @@ endif; ?>
diff --git a/wp-admin/includes/template.php b/wp-admin/includes/template.php
index c1ff2e6da4..707a133590 100644
--- a/wp-admin/includes/template.php
+++ b/wp-admin/includes/template.php
@@ -192,9 +192,9 @@ function wp_popular_terms_checklist( $taxonomy, $default = 0, $number = 10 ) {
$id = "popular-category-$category->term_id";
?>
-
+
diff --git a/wp-includes/category-template.php b/wp-includes/category-template.php
index b340923383..ba3f18fe70 100644
--- a/wp-includes/category-template.php
+++ b/wp-includes/category-template.php
@@ -216,7 +216,7 @@ function wp_dropdown_categories($args = '') {
'exclude' => '', 'echo' => 1,
'selected' => 0, 'hierarchical' => 0,
'name' => 'cat', 'class' => 'postform',
- 'depth' => 0
+ 'depth' => 0, 'tab_index' => 0
);
$defaults['selected'] = ( is_category() ) ? get_query_var('cat') : 0;
@@ -225,11 +225,15 @@ function wp_dropdown_categories($args = '') {
$r['include_last_update_time'] = $r['show_last_update'];
extract( $r );
+ $tab_index_attribute = '';
+ if ( (int) $tab_index > 0 )
+ $tab_index_attribute = " tabindex=\"$tab_index\"";
+
$categories = get_categories($r);
$output = '';
if ( ! empty($categories) ) {
- $output = "