Changeset 57990
- Timestamp:
- 04/13/2024 04:31:55 PM (11 months ago)
- Location:
- trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/pluggable.php
r57882 r57990 618 618 $user = apply_filters( 'authenticate', null, $username, $password ); 619 619 620 if ( null === $user ) {620 if ( null === $user || false === $user ) { 621 621 /* 622 622 * TODO: What should the error message be? (Or would these even happen?) -
trunk/tests/phpunit/tests/auth.php
r57987 r57990 435 435 436 436 /** 437 * @ticket 60700 438 */ 439 public function test_authenticate_filter() { 440 add_filter( 'authenticate', '__return_null', 20 ); 441 $this->assertInstanceOf( 'WP_Error', wp_authenticate( self::USER_LOGIN, self::USER_PASS ) ); 442 add_filter( 'authenticate', '__return_false', 20 ); 443 $this->assertInstanceOf( 'WP_Error', wp_authenticate( self::USER_LOGIN, self::USER_PASS ) ); 444 } 445 446 /** 437 447 * @ticket 36476 438 448 */
Note: See TracChangeset
for help on using the changeset viewer.