Changeset 57312 for trunk/src/wp-includes/rest-api/endpoints/class-wp-rest-attachments-controller.php
- Timestamp:
- 01/19/2024 05:37:05 PM (8 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/rest-api/endpoints/class-wp-rest-attachments-controller.php
r56586 r57312 202 202 wp_after_insert_post( $attachment, false, null ); 203 203 204 if ( defined( 'REST_REQUEST' ) && REST_REQUEST) {204 if ( wp_is_serving_rest_request() ) { 205 205 /* 206 206 * Set a custom header with the attachment_id. … … 631 631 } 632 632 633 if ( defined( 'REST_REQUEST' ) && REST_REQUEST) {633 if ( wp_is_serving_rest_request() ) { 634 634 /* 635 635 * Set a custom header with the attachment_id.
Note: See TracChangeset
for help on using the changeset viewer.