mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-06-28 22:30:04 +00:00
App Passwords: Unify availability language.
Previously App Passwords used a mix of "enabled" and "available". We've now standardized on using "available". Additionally, we now use a 501 status code when indicating that App Passwords is not available. Props SergeyBiryukov, ocean90, TimothyBlynJacobs. Fixes #51513. git-svn-id: https://develop.svn.wordpress.org/trunk@49617 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -527,7 +527,7 @@ class Tests_Auth extends WP_UnitTestCase {
|
||||
|
||||
$error = wp_authenticate_application_password( null, self::$_user->user_login, 'password' );
|
||||
$this->assertWPError( $error );
|
||||
$this->assertSame( 'application_passwords_disabled', $error->get_error_code() );
|
||||
$this->assertSame( 'application_passwords_disabled_for_user', $error->get_error_code() );
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user