#16503 closed defect (bug) (fixed)
get_post_format() generates queries on unsupported post types
Reported by: | nacin | Owned by: | |
---|---|---|---|
Milestone: | 3.1 | Priority: | normal |
Severity: | normal | Version: | |
Component: | Performance | Keywords: | has-patch commit |
Focuses: | Cc: |
Description
get_post_format() is used in two places in the list table templating, which will cause an unnecessary term fetch query for every post. That's no fun.
I started to fix this by patching the problem instances. But it should itself bail early if the post type isn't supported. Incoming patch does both. Pick and choose.
Attachments (2)
Note: See
TracTickets for help on using
tickets.
Going with the get_post_format early return per IRC.