[wp-trac] [WordPress Trac] #50496: The pages list table uselessly queries post formats

WordPress Trac noreply at wordpress.org
Sun Jun 28 14:17:13 UTC 2020


#50496: The pages list table uselessly queries post formats
----------------------------+-----------------------------
 Reporter:  Chouby          |      Owner:  (none)
     Type:  defect (bug)    |     Status:  new
 Priority:  normal          |  Milestone:  Awaiting Review
Component:  Administration  |    Version:  5.2
 Severity:  normal          |   Keywords:
  Focuses:  performance     |
----------------------------+-----------------------------
 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.

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


More information about the wp-trac mailing list