diff --git a/wp-includes/version.php b/wp-includes/version.php index e139b48f03..7c68642dad 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -16,7 +16,7 @@ * * @global string $wp_version */ -$wp_version = '5.9-beta3-52403'; +$wp_version = '5.9-beta3-52404'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema. diff --git a/wp-login.php b/wp-login.php index 0e13cc9112..31bbc4bfe3 100644 --- a/wp-login.php +++ b/wp-login.php @@ -312,58 +312,67 @@ function login_footer( $input_id = '' ) { . ?> - -
-
- - - - 'language-switcher-locales', - 'name' => 'wp_lang', - 'selected' => determine_locale(), - 'show_available_translations' => false, - 'explicit_option_en_us' => true, - 'languages' => $languages, - ); - - /** - * Filters default arguments for the Languages select input on the login screen. - * - * @since 5.9.0 - * - * @param array $args Arguments for the Languages select input on the login screen. - */ - wp_dropdown_languages( apply_filters( 'wp_login_language_switcher_args', $args ) ); - ?> - - - - - - - - - - - - - - - -
-
- - + if ( + ! $interim_login && + /** + * Filters the Languages select input activation on the login screen. + * + * @since 5.9.0 + * + * @param bool Whether to display the Languages select input on the login screen. + */ + apply_filters( 'display_login_language_dropdown', true ) + ) { + $languages = get_available_languages(); + if ( ! empty( $languages ) ) { + ?> +
+
+ + + + 'language-switcher-locales', + 'name' => 'wp_lang', + 'selected' => determine_locale(), + 'show_available_translations' => false, + 'explicit_option_en_us' => true, + 'languages' => $languages, + ); + + /** + * Filters default arguments for the Languages select input on the login screen. + * + * @since 5.9.0 + * + * @param array $args Arguments for the Languages select input on the login screen. + */ + wp_dropdown_languages( apply_filters( 'wp_login_language_switcher_args', $args ) ); + ?> + + + + + + + + + + + + + + + +
+
+ +