Changeset 53547 for trunk/src/wp-admin/includes/image.php
- Timestamp:
- 06/21/2022 11:16:09 AM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/includes/image.php
r53303 r53547 191 191 * 192 192 * @since 5.3.0 193 * @since 6.0.0 The `$filesize` value was added to the returned array. 193 194 * @access private 194 195 * … … 212 213 $image_meta['file'] = _wp_relative_upload_path( $new_file ); 213 214 215 // Add image file size. 216 $image_meta['filesize'] = wp_filesize( $new_file ); 217 214 218 // Store the original image file name in image_meta. 215 219 $image_meta['original_image'] = wp_basename( $original_file ); 216 217 // Add image file size.218 $image_meta['filesize'] = wp_filesize( $new_file );219 220 220 221 return $image_meta; … … 478 479 * 479 480 * @since 2.1.0 481 * @since 6.0.0 The `$filesize` value was added to the returned array. 480 482 * 481 483 * @param int $attachment_id Attachment ID to process.
Note: See TracChangeset
for help on using the changeset viewer.