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-admin/authorize-application.php

    r49562 r49617  
    9191if ( ! wp_is_application_passwords_available_for_user( $user ) ) {
    9292    if ( wp_is_application_passwords_available() ) {
    93         $message = __( 'Application passwords are not enabled for your account. Please contact the site administrator for assistance.' );
     93        $message = __( 'Application passwords are not available for your account. Please contact the site administrator for assistance.' );
    9494    } else {
    95         $message = __( 'Application passwords are not enabled.' );
     95        $message = __( 'Application passwords are not available.' );
    9696    }
    9797
     
    100100        __( 'Cannot Authorize Application' ),
    101101        array(
     102            'response'  => 501,
    102103            'link_text' => __( 'Go Back' ),
    103104            'link_url'  => $reject_url ? add_query_arg( 'error', 'disabled', $reject_url ) : admin_url(),
Note: See TracChangeset for help on using the changeset viewer.