[wp-trac] [WordPress Trac] #18536: Improve performance of WP_Query core

WordPress Trac wp-trac at lists.automattic.com
Sat Mar 10 08:06:35 UTC 2012


#18536: Improve performance of WP_Query core
----------------------------+------------------
 Reporter:  cheald          |       Owner:
     Type:  task (blessed)  |      Status:  new
 Priority:  normal          |   Milestone:  3.4
Component:  Performance     |     Version:
 Severity:  normal          |  Resolution:
 Keywords:  needs-patch     |
----------------------------+------------------

Comment (by nacin):

 Nope. $post->ancestors is only sometimes set, and (under 3.3) it is never
 set for a post object that comes from WP_Query. It *is*, however, set for
 the post object in cache (but not `$wp_query->posts[0]`) when is_singular,
 due to get_post_status() caching the object (as described above).

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


More information about the wp-trac mailing list