diff -r be944660c56a -r 3d72ae0968f4 wp/wp-login.php --- a/wp/wp-login.php Wed Sep 21 18:19:35 2022 +0200 +++ b/wp/wp-login.php Tue Sep 27 16:37:53 2022 +0200 @@ -58,7 +58,7 @@ * * @since 3.0.0 * - * @param array $shake_error_codes Error codes that shake the login form. + * @param string[] $shake_error_codes Error codes that shake the login form. */ $shake_error_codes = apply_filters( 'shake_error_codes', $shake_error_codes ); @@ -185,8 +185,8 @@ * * @since 3.5.0 * - * @param array $classes An array of body classes. - * @param string $action The action that brought the visitor to the login page. + * @param string[] $classes An array of body classes. + * @param string $action The action that brought the visitor to the login page. */ $classes = apply_filters( 'login_body_class', $classes, $action ); @@ -312,6 +312,68 @@ . ?> +
+
+ + + + '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( 'login_language_dropdown_args', $args ) ); + ?> + + + + + + + + + + + + + + + +
+
+ + + @@ -360,9 +422,9 @@ " method="post">

- +

add( 'password_reset_empty_space', __( 'The password cannot be a space or all spaces.' ) ); + } + } + + // Check if password fields do not match. + if ( ! empty( $_POST['pass1'] ) && trim( $_POST['pass2'] ) !== $_POST['pass1'] ) { $errors->add( 'password_reset_mismatch', __( 'Error: The passwords do not match.' ) ); } @@ -878,7 +954,7 @@

- + +

@@ -935,7 +1011,7 @@

' . __( 'Register For This Site' ) . '

', $errors ); @@ -994,11 +1073,11 @@

- +

- +

exists() && $user->has_cap( 'manage_options' ) ) { $admin_email_lifespan = (int) get_option( 'admin_email_lifespan' ); - // If `0` (or anything "falsey" as it is cast to int) is returned, the user will not be redirected - // to the admin email confirmation screen. + /* + * If `0` (or anything "falsey" as it is cast to int) is returned, the user will not be redirected + * to the admin email confirmation screen. + */ /** This filter is documented in wp-login.php */ $admin_email_check_interval = (int) apply_filters( 'admin_email_check_interval', 6 * MONTH_IN_SECONDS ); @@ -1267,7 +1348,10 @@ $errors->add( 'enter_recovery_mode', __( 'Recovery Mode Initialized. Please log in to continue.' ), 'message' ); } elseif ( isset( $_GET['redirect_to'] ) && false !== strpos( $_GET['redirect_to'], 'wp-admin/authorize-application.php' ) ) { $query_component = wp_parse_url( $_GET['redirect_to'], PHP_URL_QUERY ); - parse_str( $query_component, $query ); + $query = array(); + if ( $query_component ) { + parse_str( $query_component, $query ); + } if ( ! empty( $query['app_name'] ) ) { /* translators: 1: Website name, 2: Application name. */ @@ -1316,13 +1400,13 @@

- class="input" value="" size="20" autocapitalize="off" /> + class="input" value="" size="20" autocapitalize="off" autocomplete="username" />

- class="input password-input" value="" size="20" /> + class="input password-input" value="" size="20" autocomplete="current-password" />