Changeset 10463 for trunk/wp-includes/pluggable.php
- Timestamp:
- 01/29/2009 09:30:16 PM (17 years ago)
- File:
-
- 1 edited
-
trunk/wp-includes/pluggable.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/pluggable.php
r10461 r10463 427 427 $user = apply_filters('authenticate', null, $username, $password); 428 428 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 ) { 434 430 // TODO what should the error message be? (Or would these even happen?) 435 431 // Only needed if all authentication handlers fail to return anything. 436 432 $user = new WP_Error('authentication_failed', __('<strong>ERROR</strong>: Invalid username or incorrect password.')); 437 }438 433 } 439 434
Note:
See TracChangeset
for help on using the changeset viewer.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)