Make WordPress Core

Changeset 28925


Ignore:
Timestamp:
06/30/2014 02:38:21 PM (10 years ago)
Author:
SergeyBiryukov
Message:

Avoid overwriting $error global with an interim variable.

props MikeLittle.
fixes #28691.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-login.php

    r28903 r28925  
    173173        $messages = '';
    174174        foreach ( $wp_error->get_error_codes() as $code ) {
    175             $severity = $wp_error->get_error_data($code);
    176             foreach ( $wp_error->get_error_messages($code) as $error ) {
     175            $severity = $wp_error->get_error_data( $code );
     176            foreach ( $wp_error->get_error_messages( $code ) as $error_message ) {
    177177                if ( 'message' == $severity )
    178                     $messages .= '  ' . $error . "<br />\n";
     178                    $messages .= '  ' . $error_message . "<br />\n";
    179179                else
    180                     $errors .= '    ' . $error . "<br />\n";
     180                    $errors .= '    ' . $error_message . "<br />\n";
    181181            }
    182182        }
Note: See TracChangeset for help on using the changeset viewer.