diff --git a/wp-includes/l10n.php b/wp-includes/l10n.php index e299e71579..7de619d15c 100644 --- a/wp-includes/l10n.php +++ b/wp-includes/l10n.php @@ -910,7 +910,9 @@ function wp_dropdown_languages( $args = array() ) { $structure = array(); // List installed languages. - $structure[] = ''; + if ( $args['show_available_translations'] ) { + $structure[] = ''; + } $structure[] = ''; foreach ( $languages as $language ) { $structure[] = sprintf( @@ -921,7 +923,9 @@ function wp_dropdown_languages( $args = array() ) { esc_html( $language['native_name'] ) ); } - $structure[] = ''; + if ( $args['show_available_translations'] ) { + $structure[] = ''; + } // List available translations. if ( ! empty( $translations ) && $args['show_available_translations'] ) { diff --git a/wp-includes/version.php b/wp-includes/version.php index b14b685ef0..d36d2fb74e 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -4,7 +4,7 @@ * * @global string $wp_version */ -$wp_version = '4.1-alpha-30339'; +$wp_version = '4.1-alpha-30340'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.