Changeset 3971

Show
Ignore:
Timestamp:
07/05/06 09:44:43 (3 years ago)
Author:
ryan
Message:

Don't trigger warning when first visiting login. fixes #2901

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • branches/2.0/wp-login.php

    r3967 r3971  
    205205                $error = __('Your session has expired.'); 
    206206        } 
    207     } else if ( empty($user_login) ) { 
    208         $error = __('<strong>Error</strong>: The username field is empty.'); 
    209     } else if ( empty($user_pass) ) { 
     207    } else if ( $user_login || $user_pass ) { 
    210208        $error = __('<strong>Error</strong>: The password field is empty.'); 
    211209    }