Changeset 3972

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

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

Files:

Legend:

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

    r3966 r3972  
    208208                $error = __('Your session has expired.'); 
    209209        } 
    210     } else if ( empty($user_login) ) { 
    211         $error = __('<strong>Error</strong>: The username field is empty.'); 
    212     } else if ( empty($user_pass) ) { 
     210    } else if ( $user_login || $user_pass ) { 
    213211        $error = __('<strong>Error</strong>: The password field is empty.'); 
    214212    }