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

WordPress Trac noreply at wordpress.org
Tue May 10 05:00:29 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 peterwilsoncc):

 In [changeset:"53372" 53372]:
 {{{
 #!CommitTicketReference repository="" revision="53372"
 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.
 Fixes #55678.
 See #49412.
 }}}

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


More information about the wp-trac mailing list