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

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


#50496: The pages list table uselessly queries post formats
-------------------------------+------------------------------------------
 Reporter:  Chouby             |       Owner:  SergeyBiryukov
     Type:  defect (bug)       |      Status:  closed
 Priority:  normal             |   Milestone:  5.5
Component:  Posts, Post Types  |     Version:  5.2
 Severity:  normal             |  Resolution:  fixed
 Keywords:  has-patch          |     Focuses:  administration, performance
-------------------------------+------------------------------------------
Changes (by SergeyBiryukov):

 * owner:  (none) => SergeyBiryukov
 * status:  new => closed
 * resolution:   => fixed


Comment:

 In [changeset:"48203" 48203]:
 {{{
 #!CommitTicketReference repository="" revision="48203"
 Posts, Post Types: Return early from
 `WP_Posts_List_Table::formats_dropdown()` if the post type does not
 support post formats.

 This avoids an unnecessary database query for the `post_format` taxonomy.

 Props Chouby.
 Fixes #50496.
 }}}

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


More information about the wp-trac mailing list