diff --git a/wp-login.php b/wp-login.php
index 257655891b..fe86fa1278 100644
--- a/wp-login.php
+++ b/wp-login.php
@@ -172,12 +172,12 @@ function login_header( $title = 'Log In', $message = '', $wp_error = '' ) {
$errors = '';
$messages = '';
foreach ( $wp_error->get_error_codes() as $code ) {
- $severity = $wp_error->get_error_data($code);
- foreach ( $wp_error->get_error_messages($code) as $error ) {
+ $severity = $wp_error->get_error_data( $code );
+ foreach ( $wp_error->get_error_messages( $code ) as $error_message ) {
if ( 'message' == $severity )
- $messages .= ' ' . $error . "
\n";
+ $messages .= ' ' . $error_message . "
\n";
else
- $errors .= ' ' . $error . "
\n";
+ $errors .= ' ' . $error_message . "
\n";
}
}
if ( ! empty( $errors ) ) {