Allow media file size to be set from metadata when viewing media modal
|Reported by:||polevaultweb||Owned by:||wonderboymusic|
When viewing an attachment in the edit post screen, the file size is either calculated from the actual file, or taken from 'filesize' if set, from wp_get_attachment_metadata(). This alternative to using filesize( $file ); is helpful for image plugins that store the file somewhere else, i.e. it doesn't exist locally.
However, when you view the media in the modal, the file size is only calculated using the local file.
Change History (6)
20 months ago
- Keywords has-patch needs-testing added
- Owner set to wonderboymusic
- Resolution set to fixed
- Status changed from new to closed