[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 15:03:05 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 query loop
--------------------------+-------------------------------------------------

Comment(by filosofo):

 Replying to [comment:7 michelwppi]:
 > it is not really a loop in loop

  * What is "it"?
  * In other words, ''what'' is not really a loop in loop?
  * Please show sample code if available.

 > as described with template tags

  * What do you mean by a "loop as described with template tags"?
  * How do template tags "describe" a loop?

 > but remember that the results of the main query are available inside
 global $wp_query and $wp_the_query. And the instantation can use or share
 objects of these former globals.

  * Since the results of the main query are always inside $wp_the_query,
 why are still experiencing problems?
  * What are you unable to do with the current system?
  * What is the expected behavior, and how does the actual behavior differ?
  * Can you post some code that produces the problem?

 Thank you.

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


More information about the wp-trac mailing list