Changeset 46696 for trunk/src/wp-includes/rest-api/endpoints/class-wp-rest-attachments-controller.php
- Timestamp:
- 11/11/2019 02:41:15 AM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/rest-api/endpoints/class-wp-rest-attachments-controller.php
r46626 r46696 85 85 * 86 86 * @param WP_REST_Request $request Full details about the request. 87 * @return WP_Error|trueBoolean true if the attachment may be created, or a WP_Error if not.87 * @return true|WP_Error Boolean true if the attachment may be created, or a WP_Error if not. 88 88 */ 89 89 public function create_item_permissions_check( $request ) { … … 117 117 * 118 118 * @param WP_REST_Request $request Full details about the request. 119 * @return WP_ Error|WP_REST_ResponseResponse object on success, WP_Error object on failure.119 * @return WP_REST_Response|WP_Error Response object on success, WP_Error object on failure. 120 120 */ 121 121 public function create_item( $request ) { … … 275 275 * 276 276 * @param WP_REST_Request $request Full details about the request. 277 * @return WP_ Error|WP_REST_ResponseResponse object on success, WP_Error object on failure.277 * @return WP_REST_Response|WP_Error Response object on success, WP_Error object on failure. 278 278 */ 279 279 public function update_item( $request ) { … … 353 353 * 354 354 * @param WP_REST_Request $request Request object. 355 * @return WP_Error|stdClass $prepared_attachmentPost object.355 * @return stdClass|WP_Error Post object. 356 356 */ 357 357 protected function prepare_item_for_database( $request ) {
Note: See TracChangeset
for help on using the changeset viewer.