Make WordPress Core


Ignore:
Timestamp:
11/16/2020 10:40:11 PM (4 years ago)
Author:
TimothyBlynJacobs
Message:

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.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tests/phpunit/tests/auth.php

    r49603 r49617  
    528528        $error = wp_authenticate_application_password( null, self::$_user->user_login, 'password' );
    529529        $this->assertWPError( $error );
    530         $this->assertSame( 'application_passwords_disabled', $error->get_error_code() );
     530        $this->assertSame( 'application_passwords_disabled_for_user', $error->get_error_code() );
    531531    }
    532532
Note: See TracChangeset for help on using the changeset viewer.