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

WordPress Trac noreply at wordpress.org
Thu Sep 17 05:02:54 UTC 2015


#33214: Allow media file size to be set from metadata when viewing media modal
-------------------------------------+-----------------------------
 Reporter:  polevaultweb             |       Owner:  wonderboymusic
     Type:  enhancement              |      Status:  closed
 Priority:  normal                   |   Milestone:  4.4
Component:  Media                    |     Version:  3.5
 Severity:  normal                   |  Resolution:  fixed
 Keywords:  has-patch needs-testing  |     Focuses:
-------------------------------------+-----------------------------
Changes (by wonderboymusic):

 * owner:   => wonderboymusic
 * status:  new => closed
 * resolution:   => fixed


Comment:

 In [changeset:"34258"]:
 {{{
 #!CommitTicketReference repository="" revision="34258"
 Media: In `wp_prepare_attachment_for_js()`, don't call `file_exists()` and
 `filesize()` to retrieve `$bytes` if the data is already present in
 `$meta`. This is how the same code in `attachment_submitbox_metadata()`
 already works.

 Props polevaultweb.
 Fixes #33214.
 }}}

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


More information about the wp-trac mailing list