[wp-trac] Re: [WordPress Trac] #7080: a new WP_Query created in the
loop, whose the_post() method is called,
messes around with wp_the_query - "recent entries" widget is still
loop-breaking
WordPress Trac
wp-trac at lists.automattic.com
Sun May 17 21:33:37 GMT 2009
#7080: a new WP_Query created in the loop, whose the_post() method is called,
messes around with wp_the_query - "recent entries" widget is still loop-
breaking
--------------------------+-------------------------------------------------
Reporter: msi08 | Owner: Denis-de-Bernardy
Type: defect (bug) | Status: reopened
Priority: normal | Milestone: 2.8
Component: Query | Version: 2.7
Severity: normal | Resolution:
Keywords: needs-patch |
--------------------------+-------------------------------------------------
Comment(by Denis-de-Bernardy):
also, consider adding this after the call to the_post() in the recent
posts widget:
{{{
var_dump($GLOBALS['wp_the_query']->post->ID);
}}}
you will notice that it changes.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/7080#comment:18>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list