mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-08-16 14:50:29 +00:00
Application Passwords: Improve various user-facing and developer-facing terminology.
Fixes #53503, #53691 git-svn-id: https://develop.svn.wordpress.org/trunk@51463 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
+3
-3
@@ -491,7 +491,7 @@ class WP_REST_Application_Passwords_Controller extends WP_REST_Controller {
|
||||
if ( get_current_user_id() !== $user->ID ) {
|
||||
return new WP_Error(
|
||||
'rest_cannot_introspect_app_password_for_non_authenticated_user',
|
||||
__( 'The authenticated Application Password can only be introspected for the current user.' ),
|
||||
__( 'The authenticated application password can only be introspected for the current user.' ),
|
||||
array( 'status' => rest_authorization_required_code() )
|
||||
);
|
||||
}
|
||||
@@ -519,7 +519,7 @@ class WP_REST_Application_Passwords_Controller extends WP_REST_Controller {
|
||||
if ( ! $uuid ) {
|
||||
return new WP_Error(
|
||||
'rest_no_authenticated_app_password',
|
||||
__( 'Cannot introspect Application Password.' ),
|
||||
__( 'Cannot introspect application password.' ),
|
||||
array( 'status' => 404 )
|
||||
);
|
||||
}
|
||||
@@ -788,7 +788,7 @@ class WP_REST_Application_Passwords_Controller extends WP_REST_Controller {
|
||||
'readonly' => true,
|
||||
),
|
||||
'app_id' => array(
|
||||
'description' => __( 'A uuid provided by the application to uniquely identify it. It is recommended to use an UUID v5 with the URL or DNS namespace.' ),
|
||||
'description' => __( 'A UUID provided by the application to uniquely identify it. It is recommended to use an UUID v5 with the URL or DNS namespace.' ),
|
||||
'type' => 'string',
|
||||
'format' => 'uuid',
|
||||
'context' => array( 'view', 'edit', 'embed' ),
|
||||
|
||||
Reference in New Issue
Block a user