wp/wp-includes/rest-api/endpoints/class-wp-rest-application-passwords-controller.php
changeset 19 3d72ae0968f4
parent 18 be944660c56a
child 21 48c4eec2b7e6
--- a/wp/wp-includes/rest-api/endpoints/class-wp-rest-application-passwords-controller.php	Wed Sep 21 18:19:35 2022 +0200
+++ b/wp/wp-includes/rest-api/endpoints/class-wp-rest-application-passwords-controller.php	Tue Sep 27 16:37:53 2022 +0200
@@ -356,7 +356,7 @@
 	}
 
 	/**
-	 * Checks if a given request has access to delete all application passwords.
+	 * Checks if a given request has access to delete all application passwords for a user.
 	 *
 	 * @since 5.6.0
 	 *
@@ -382,7 +382,7 @@
 	}
 
 	/**
-	 * Deletes all application passwords.
+	 * Deletes all application passwords for a user.
 	 *
 	 * @since 5.6.0
 	 *
@@ -411,7 +411,7 @@
 	}
 
 	/**
-	 * Checks if a given request has access to delete a specific application password.
+	 * Checks if a given request has access to delete a specific application password for a user.
 	 *
 	 * @since 5.6.0
 	 *
@@ -437,7 +437,7 @@
 	}
 
 	/**
-	 * Deletes one application password.
+	 * Deletes an application password for a user.
 	 *
 	 * @since 5.6.0
 	 *
@@ -474,7 +474,7 @@
 	}
 
 	/**
-	 * Checks if a given request has access to get the currently used application password.
+	 * Checks if a given request has access to get the currently used application password for a user.
 	 *
 	 * @since 5.7.0
 	 *
@@ -491,7 +491,7 @@
 		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() )
 			);
 		}
@@ -500,7 +500,7 @@
 	}
 
 	/**
-	 * Retrieves the application password being currently used for authentication.
+	 * Retrieves the application password being currently used for authentication of a user.
 	 *
 	 * @since 5.7.0
 	 *
@@ -519,7 +519,7 @@
 		if ( ! $uuid ) {
 			return new WP_Error(
 				'rest_no_authenticated_app_password',
-				__( 'Cannot introspect Application Password.' ),
+				__( 'Cannot introspect application password.' ),
 				array( 'status' => 404 )
 			);
 		}
@@ -723,7 +723,7 @@
 	}
 
 	/**
-	 * Gets the requested application password.
+	 * Gets the requested application password for a user.
 	 *
 	 * @since 5.6.0
 	 *
@@ -788,7 +788,7 @@
 					'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' ),