From 4a77621488b92eaa50d61272e4ac588ace3668a3 Mon Sep 17 00:00:00 2001 From: Joe Dolson Date: Mon, 8 Nov 2021 23:02:40 +0000 Subject: [PATCH] Coding Standards: PHP Code style errors. Fixes coding standards issues. Follow up to [52058]. See #43700. git-svn-id: https://develop.svn.wordpress.org/trunk@52060 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-login.php | 35 ++++++++++++++++++----------------- 1 file changed, 18 insertions(+), 17 deletions(-) diff --git a/src/wp-login.php b/src/wp-login.php index 4aa06cc99b..ccfd45f1ec 100644 --- a/src/wp-login.php +++ b/src/wp-login.php @@ -314,7 +314,8 @@ function login_footer( $input_id = '' ) { + if ( ! empty( $languages ) && ! $interim_login ) { + ?>
@@ -325,23 +326,23 @@ 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, - ); + $args = array( + '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 ) ); + /** + * 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 ) ); ?>