Opened 6 years ago
Closed 6 years ago
#50496 closed defect (bug) (fixed)
The pages list table uselessly queries post formats
| Reported by: |
|
Owned by: |
|
|---|---|---|---|
| Milestone: | 5.5 | Priority: | normal |
| Severity: | normal | Version: | 5.2 |
| Component: | Posts, Post Types | Keywords: | has-patch |
| Focuses: | administration, performance | Cc: |
Description
On the pages list table, Query Monitor reports unexpectedly this DB query:
SELECT t.*, tt.*
FROM wp_terms AS t
INNER JOIN wp_term_taxonomy AS tt
ON t.term_id = tt.term_id
WHERE tt.taxonomy IN ('post_format')
AND tt.count > 0
ORDER BY t.name ASC
As the 'post_format' taxonomy is not defined for the 'page' post type, there should be no need to query post formats.
Attachments (1)
Change History (5)
Note: See
TracTickets for help on using
tickets.
In 48203: