Changeset 10455
- Timestamp:
- 01/28/2009 10:11:49 PM (16 years ago)
- Location:
- trunk/wp-includes
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/pluggable.php
r10437 r10455 427 427 $user = apply_filters('authenticate', null, $username, $password); 428 428 429 if ($user == null) { 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 { 430 434 // TODO what should the error message be? (Or would these even happen?) 431 435 // Only needed if all authentication handlers fail to return anything. 432 436 $user = new WP_Error('authentication_failed', __('<strong>ERROR</strong>: Invalid username or incorrect password.')); 437 } 433 438 } 434 439 -
trunk/wp-includes/user.php
r10437 r10455 67 67 if ( is_a($user, 'WP_User') ) { return $user; } 68 68 69 // XXXslight hack to handle initial load of wp-login.php69 // TODO slight hack to handle initial load of wp-login.php 70 70 if ( (empty($username) && empty($password)) && $GLOBALS['pagenow'] == 'wp-login.php' ) { 71 71 return $user;
Note: See TracChangeset
for help on using the changeset viewer.