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/rest-api/rest-application-passwords-controller.php

    r49603 r49617  
    113113
    114114        $response = rest_do_request( '/wp/v2/users/me/application-passwords' );
    115         $this->assertErrorResponse( 'application_passwords_disabled', $response, 500 );
     115        $this->assertErrorResponse( 'application_passwords_disabled', $response, 501 );
    116116    }
    117117
     
    124124
    125125        $response = rest_do_request( '/wp/v2/users/me/application-passwords' );
    126         $this->assertErrorResponse( 'application_passwords_disabled_for_user', $response, 500 );
     126        $this->assertErrorResponse( 'application_passwords_disabled_for_user', $response, 501 );
    127127    }
    128128
Note: See TracChangeset for help on using the changeset viewer.