[wp-trac] [WordPress Trac] #12320: Invalid call to wp_reset_query() inside Recent Posts widget

WordPress Trac wp-trac at lists.automattic.com
Mon Feb 22 02:59:48 UTC 2010


#12320: Invalid call to wp_reset_query() inside Recent Posts widget
--------------------------+-------------------------------------------------
 Reporter:  michelwppi    |       Owner:  azaozz                            
     Type:  defect (bug)  |      Status:  new                               
 Priority:  normal        |   Milestone:  3.0                               
Component:  Widgets       |     Version:  2.9.2                             
 Severity:  normal        |    Keywords:  has-patch needs-testing query loop
--------------------------+-------------------------------------------------

Comment(by filosofo):

 Please help me to understand the nature of the problem.
  * Why would the sidebar be within a Loop?
  * Shouldn't a Loop within a Loop be using its own instantiation of
 WP_Query, instead of $wp_query or $wp_the_query?

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


More information about the wp-trac mailing list