[wp-trac] [WordPress Trac] #11461: When creating a new WP_Query, running the_post() on the new object resets global $post

WordPress Trac wp-trac at lists.automattic.com
Wed Dec 16 19:36:46 UTC 2009


#11461: When creating a new WP_Query, running the_post() on the new object resets
global $post
--------------------------+-------------------------------------------------
 Reporter:  bsdeluxe      |       Owner:  ryan      
     Type:  defect (bug)  |      Status:  new       
 Priority:  normal        |   Milestone:  Unassigned
Component:  Query         |     Version:            
 Severity:  normal        |    Keywords:  close     
--------------------------+-------------------------------------------------
Changes (by scribu):

  * keywords:  the_post, wp_query, scope, post => close


Comment:

 What nacin said and also, with your patch, how would the global $post be
 populated in the main query?

 Suggest closing as 'worksforme'.

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


More information about the wp-trac mailing list