[wp-trac] [WordPress Trac] #55678: Avoid `filesize()` warnings when storing file size in media metadata

WordPress Trac noreply at wordpress.org
Wed May 4 14:22:03 UTC 2022


#55678: Avoid `filesize()` warnings when storing file size in media metadata
--------------------------+---------------------
 Reporter:  johnbillion   |       Owner:  (none)
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  6.0
Component:  Media         |     Version:  trunk
 Severity:  normal        |  Resolution:
 Keywords:  needs-patch   |     Focuses:
--------------------------+---------------------

Comment (by spacedmonkey):

 I would recommend using `is_readable` instead of file exists. File exist
 is not the only thing that is important here.

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


More information about the wp-trac mailing list