[wp-trac] [WordPress Trac] #33214: Allow media file size to be set from metadata when viewing media modal

WordPress Trac noreply at wordpress.org
Fri Jul 31 09:08:50 UTC 2015


#33214: Allow media file size to be set from metadata when viewing media modal
--------------------------+-----------------------------
 Reporter:  polevaultweb  |      Owner:
     Type:  enhancement   |     Status:  new
 Priority:  normal        |  Milestone:  Awaiting Review
Component:  Media         |    Version:  3.5
 Severity:  normal        |   Keywords:
  Focuses:                |
--------------------------+-----------------------------
 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.

--
Ticket URL: <https://core.trac.wordpress.org/ticket/33214>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list