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/src/wp-includes/rest-api/endpoints/class-wp-rest-application-passwords-controller.php

    r49276 r49617  
    504504            return new WP_Error(
    505505                'application_passwords_disabled',
    506                 __( 'Application passwords are not enabled.' ),
    507                 array( 'status' => 500 )
     506                __( 'Application passwords are not available.' ),
     507                array( 'status' => 501 )
    508508            );
    509509        }
     
    548548            return new WP_Error(
    549549                'application_passwords_disabled_for_user',
    550                 __( 'Application passwords are not enabled for your account. Please contact the site administrator for assistance.' ),
    551                 array( 'status' => 500 )
     550                __( 'Application passwords are not available for your account. Please contact the site administrator for assistance.' ),
     551                array( 'status' => 501 )
    552552            );
    553553        }
Note: See TracChangeset for help on using the changeset viewer.