- Timestamp:
- 09/11/2024 12:06:15 PM (10 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/class-wp-application-passwords.php
r55732 r59009 72 72 * Application password details, or a WP_Error instance if an error occurs. 73 73 * 74 * @type string $0 The unhashed generated application password.74 * @type string $0 The generated application password in plain text. 75 75 * @type array $1 { 76 76 * The details about the created password. … … 142 142 * @type null $last_ip Null. 143 143 * } 144 * @param string $new_password The unhashed generated application password.144 * @param string $new_password The generated application password in plain text. 145 145 * @param array $args { 146 146 * Arguments used to create the application password. … … 162 162 * @param int $user_id User ID. 163 163 * @return array { 164 * The list of app passwords.164 * The list of application passwords. 165 165 * 166 166 * @type array ...$0 { … … 205 205 * @param int $user_id User ID. 206 206 * @param string $uuid The password's UUID. 207 * @return array|null The application password if found, null otherwise. 207 * @return array|null { 208 * The application password if found, null otherwise. 209 * 210 * @type string $uuid The unique identifier for the application password. 211 * @type string $app_id A UUID provided by the application to uniquely identify it. 212 * @type string $name The name of the application password. 213 * @type string $password A one-way hash of the password. 214 * @type int $created Unix timestamp of when the password was created. 215 * @type int|null $last_used The Unix timestamp of the GMT date the application password was last used. 216 * @type string|null $last_ip The IP address the application password was last used by. 217 * } 208 218 */ 209 219 public static function get_user_application_password( $user_id, $uuid ) { … … 247 257 * @param int $user_id User ID. 248 258 * @param string $uuid The password's UUID. 249 * @param array $update Information about the application password to update. 259 * @param array $update { 260 * Information about the application password to update. 261 * 262 * @type string $uuid The unique identifier for the application password. 263 * @type string $app_id A UUID provided by the application to uniquely identify it. 264 * @type string $name The name of the application password. 265 * @type string $password A one-way hash of the password. 266 * @type int $created Unix timestamp of when the password was created. 267 * @type int|null $last_used The Unix timestamp of the GMT date the application password was last used. 268 * @type string|null $last_ip The IP address the application password was last used by. 269 * } 250 270 * @return true|WP_Error True if successful, otherwise a WP_Error instance is returned on error. 251 271 */ … … 283 303 * 284 304 * @param int $user_id The user ID. 285 * @param array $item The updated app password details. 305 * @param array $item { 306 * The updated application password details. 307 * 308 * @type string $uuid The unique identifier for the application password. 309 * @type string $app_id A UUID provided by the application to uniquely identify it. 310 * @type string $name The name of the application password. 311 * @type string $password A one-way hash of the password. 312 * @type int $created Unix timestamp of when the password was created. 313 * @type int|null $last_used The Unix timestamp of the GMT date the application password was last used. 314 * @type string|null $last_ip The IP address the application password was last used by. 315 * } 286 316 * @param array $update The information to update. 287 317 */ … … 405 435 * 406 436 * @param int $user_id User ID. 407 * @param array $passwords Application passwords. 408 * 409 * @return bool 437 * @param array $passwords { 438 * The list of application passwords. 439 * 440 * @type array ...$0 { 441 * @type string $uuid The unique identifier for the application password. 442 * @type string $app_id A UUID provided by the application to uniquely identify it. 443 * @type string $name The name of the application password. 444 * @type string $password A one-way hash of the password. 445 * @type int $created Unix timestamp of when the password was created. 446 * @type int|null $last_used The Unix timestamp of the GMT date the application password was last used. 447 * @type string|null $last_ip The IP address the application password was last used by. 448 * } 449 * } 450 * @return int|bool User meta ID if the key didn't exist (ie. this is the first time that an application password 451 * has been saved for the user), true on successful update, false on failure or if the value passed 452 * is the same as the one that is already in the database. 410 453 */ 411 454 protected static function set_user_application_passwords( $user_id, $passwords ) {
Note: See TracChangeset
for help on using the changeset viewer.