[wp-trac] [WordPress Trac] #20177: Unneccessary term cache query for pages

WordPress Trac wp-trac at lists.automattic.com
Fri Sep 14 16:24:30 UTC 2012


#20177: Unneccessary term cache query for pages
--------------------------+------------------
 Reporter:  TheDeadMedic  |       Owner:
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  3.5
Component:  Query         |     Version:  1.5
 Severity:  normal        |  Resolution:
 Keywords:  has-patch     |
--------------------------+------------------

Comment (by nacin):

 Even better... We should change update_post_caches(). It has $post_type
 default to 'post'. But if $post_type ends up being empty, it again sets it
 to 'post'. It should probably set it to 'any' instead.

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/20177#comment:10>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list