diff --git a/wp-includes/default-widgets.php b/wp-includes/default-widgets.php index 6f197a321f..1a739851ee 100644 --- a/wp-includes/default-widgets.php +++ b/wp-includes/default-widgets.php @@ -285,8 +285,10 @@ class WP_Widget_Archives extends WP_Widget { } if ( $d ) { + $dropdown_id = "{$this->id_base}-dropdown-{$this->number}"; ?> - 'name', 'show_count' => $c, 'hierarchical' => $h); + $cat_args = array( + 'orderby' => 'name', + 'show_count' => $c, + 'hierarchical' => $h + ); if ( $d ) { - $cat_args['show_option_none'] = __('Select Category'); + static $first_dropdown = true; + + $dropdown_id = ( $first_dropdown ) ? 'cat' : "{$this->id_base}-dropdown-{$this->number}"; + $first_dropdown = false; + + echo ''; + + $cat_args['show_option_none'] = __( 'Select Category' ); + $cat_args['id'] = $dropdown_id; /** * Filter the arguments for the Categories widget drop-down. @@ -595,13 +609,15 @@ class WP_Widget_Categories extends WP_Widget { diff --git a/wp-includes/version.php b/wp-includes/version.php index bd9a73d4ef..93fa92e7b0 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -4,7 +4,7 @@ * * @global string $wp_version */ -$wp_version = '4.2-alpha-31519'; +$wp_version = '4.2-alpha-31520'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.