[wp-trac] [WordPress Trac] #58269: Store attachment metadata in separate fields

WordPress Trac noreply at wordpress.org
Mon May 8 17:05:43 UTC 2023


#58269: Store attachment metadata in separate fields
--------------------------------+-----------------------------
 Reporter:  shawfactor          |      Owner:  (none)
     Type:  defect (bug)        |     Status:  new
 Priority:  normal              |  Milestone:  Awaiting Review
Component:  Options, Meta APIs  |    Version:
 Severity:  normal              |   Keywords:
  Focuses:                      |
--------------------------------+-----------------------------
 At the moment as far as I can tell information like image dimensions is
 stored alongside a lot of other information in the _wp_attachment_metadata
 field

 This is far from ideal as there are many times you may want to wp_query by
 individual attachment attributes. Such as all images larger than 1000*1000
 pixels. This is not able to be done (as far as I know) in an efficient
 standard way at the moment.

 I propose that certain key attributes are stored in their own meta fields
 going forward

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


More information about the wp-trac mailing list