[wp-trac] [WordPress Trac] #49412: Store filesize media metadata

WordPress Trac noreply at wordpress.org
Tue May 10 16:11:00 UTC 2022


#49412: Store filesize media metadata
-----------------------------+---------------------------
 Reporter:  Cybr             |       Owner:  spacedmonkey
     Type:  feature request  |      Status:  closed
 Priority:  normal           |   Milestone:  6.0
Component:  Media            |     Version:
 Severity:  normal           |  Resolution:  fixed
 Keywords:  has-dev-note     |     Focuses:  performance
-----------------------------+---------------------------

Comment (by SergeyBiryukov):

 In [changeset:"53380" 53380]:
 {{{
 #!CommitTicketReference repository="" revision="53380"
 Media: Remove error suppression in `wp_filesize()`.

 Replace error suppressing in `wp_filesize()` with a `file_exists()` check
 before calling the native PHP `filesize()` function.

 Follow up to [52837].

 Props Cybr, johnbillion, spacedmonkey, antpb, azouamauriac,
 ironprogrammer, mukesh27, costdev, audrasjb, dlh, peterwilsoncc.
 Merges [53372] to the 6.0 branch.
 Fixes #55678.
 See #49412.
 }}}

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


More information about the wp-trac mailing list