WordPress.org

Make WordPress Core


Ignore:
Timestamp:
01/29/2009 09:30:16 PM (11 years ago)
Author:
westi
Message:

Much better handling of wp-login.php page load. See #8938 props wnorris.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/pluggable.php

    r10461 r10463  
    427427    $user = apply_filters('authenticate', null, $username, $password);
    428428
    429     if ( ($user == null ) ) {
    430         // TODO slight hack to handle initial load of wp-login.php
    431         if ( empty($username) && empty($password) && ($GLOBALS['pagenow'] == 'wp-login.php' ) ) {
    432             $user = new WP_Error('',''); //No Error
    433         } else {
     429    if ( $user == null ) {
    434430        // TODO what should the error message be? (Or would these even happen?)
    435431        // Only needed if all authentication handlers fail to return anything.
    436432        $user = new WP_Error('authentication_failed', __('<strong>ERROR</strong>: Invalid username or incorrect password.'));
    437         }
    438433    }
    439434
Note: See TracChangeset for help on using the changeset viewer.