Make WordPress Core

Opened 13 months ago

#58269 new defect (bug)

Store attachment metadata in separate fields

Reported by: shawfactor's profile shawfactor Owned by:
Milestone: Awaiting Review Priority: normal
Severity: normal Version:
Component: Options, Meta APIs Keywords:
Focuses: Cc:


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

Change History (0)

Note: See TracTickets for help on using tickets.