Changeset 10455 for trunk/wp-includes/pluggable.php
- Timestamp:
- 01/28/2009 10:11:49 PM (15 years ago)
- File:
-
- 1 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
Note: See TracChangeset
for help on using the changeset viewer.