Changeset 49276 for trunk/src/wp-includes/rest-api/endpoints/class-wp-rest-application-passwords-controller.php
- Timestamp:
- 10/22/2020 03:04:23 PM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/rest-api/endpoints/class-wp-rest-application-passwords-controller.php
r49109 r49276 413 413 ); 414 414 415 if ( $request['app_id'] && ! $request['uuid'] ) { 416 $prepared->app_id = $request['app_id']; 417 } 418 415 419 /** 416 420 * Filters an application password before it is inserted via the REST API. … … 442 446 $prepared = array( 443 447 'uuid' => $item['uuid'], 448 'app_id' => empty( $item['app_id'] ) ? '' : $item['app_id'], 444 449 'name' => $item['name'], 445 450 'created' => gmdate( 'Y-m-d\TH:i:s', $item['created'] ), … … 616 621 'readonly' => true, 617 622 ), 623 'app_id' => array( 624 '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.' ), 625 'type' => 'string', 626 'format' => 'uuid', 627 'context' => array( 'view', 'edit', 'embed' ), 628 ), 618 629 'name' => array( 619 630 'description' => __( 'The name of the application password.' ),
Note: See TracChangeset
for help on using the changeset viewer.