Changeset 48498 for trunk/src/wp-includes/rest-api/endpoints/class-wp-rest-attachments-controller.php
- Timestamp:
- 07/16/2020 09:54:37 PM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/rest-api/endpoints/class-wp-rest-attachments-controller.php
r48408 r48498 422 422 $image_meta = wp_get_attachment_metadata( $attachment_id ); 423 423 424 if ( ! $image_meta || ! $image_file ) { 424 if ( 425 ! $image_meta || 426 ! $image_file || 427 ! wp_image_file_matches_image_meta( $request['src'], $image_meta ) 428 ) { 425 429 return new WP_Error( 426 430 'rest_unknown_attachment', … … 1290 1294 'maximum' => 100, 1291 1295 ), 1296 'src' => array( 1297 'description' => __( 'URL to the edited image file.' ), 1298 'type' => 'string', 1299 'format' => 'uri', 1300 'required' => true, 1301 ), 1292 1302 ); 1293 1303 }
Note: See TracChangeset
for help on using the changeset viewer.