@@ -192,7 +192,7 @@ discard block |
||
192 | 192 | * Prepare a single attachment for create or update |
193 | 193 | * |
194 | 194 | * @param WP_REST_Request $request Request object |
195 | - * @return WP_Error|stdClass $prepared_attachment Post object |
|
195 | + * @return string $prepared_attachment Post object |
|
196 | 196 | */ |
197 | 197 | protected function prepare_item_for_database( $request ) { |
198 | 198 | $prepared_attachment = parent::prepare_item_for_database( $request ); |
@@ -215,7 +215,7 @@ discard block |
||
215 | 215 | /** |
216 | 216 | * Prepare a single attachment output for response |
217 | 217 | * |
218 | - * @param WP_Post $post Post object |
|
218 | + * @param WP_Post|null $post Post object |
|
219 | 219 | * @param WP_REST_Request $request Request object |
220 | 220 | * @return WP_REST_Response $response |
221 | 221 | */ |