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

WordPress Trac noreply at wordpress.org
Wed Oct 28 13:50:05 UTC 2020


#49412: Store filesize media metadata
-----------------------------+-----------------------------
 Reporter:  Cybr             |       Owner:  (none)
     Type:  feature request  |      Status:  new
 Priority:  normal           |   Milestone:  Future Release
Component:  Media            |     Version:
 Severity:  normal           |  Resolution:
 Keywords:  has-patch        |     Focuses:  performance
-----------------------------+-----------------------------

Comment (by spacedmonkey):

 > since filesize can return false, any objections to casting the return
 value to an int (so false becomes 0)?

 +1 to this.

 Also, this change takes effect on new / updated attachments, should we try
 to backfill this data on existing attachments?

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


More information about the wp-trac mailing list