[wp-trac] [WordPress Trac] #51650: Store file size in attachment metadata

WordPress Trac noreply at wordpress.org
Tue Oct 27 22:38:39 UTC 2020


#51650: Store file size in attachment metadata
--------------------------+------------------------------------------
 Reporter:  spacedmonkey  |      Owner:  (none)
     Type:  enhancement   |     Status:  new
 Priority:  normal        |  Milestone:  Awaiting Review
Component:  Media         |    Version:
 Severity:  normal        |   Keywords:  needs-patch needs-unit-tests
  Focuses:                |
--------------------------+------------------------------------------
 Many popular plugins like Yoast, ACF and Jetpack, use the function
 `filesize` to get the file size of a attachment. This call can be
 expensive. WordPress should store this file size in post meta where
 plugins and WordPress core can easily receive this information.

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/51650>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list