Changeset 56174 for trunk/src/wp-admin/includes/media.php
- Timestamp:
- 07/09/2023 07:50:52 PM (19 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/includes/media.php
r56031 r56174 423 423 424 424 if ( ! is_wp_error( $attachment_id ) ) { 425 // Set a custom header with the attachment_id. 426 // Used by the browser/client to resume creating image sub-sizes after a PHP fatal error. 425 /* 426 * Set a custom header with the attachment_id. 427 * Used by the browser/client to resume creating image sub-sizes after a PHP fatal error. 428 */ 427 429 if ( ! headers_sent() ) { 428 430 header( 'X-WP-Upload-Attachment-ID: ' . $attachment_id ); 429 431 } 430 432 431 // The image sub-sizes are created during wp_generate_attachment_metadata(). 432 // This is generally slow and may cause timeouts or out of memory errors. 433 /* 434 * The image sub-sizes are created during wp_generate_attachment_metadata(). 435 * This is generally slow and may cause timeouts or out of memory errors. 436 */ 433 437 wp_update_attachment_metadata( $attachment_id, wp_generate_attachment_metadata( $attachment_id, $file ) ); 434 438 }
Note: See TracChangeset
for help on using the changeset viewer.