[wp-trac] [WordPress Trac] #11698: have_posts should not auto rewind

WordPress Trac wp-trac at lists.automattic.com
Sun Jan 3 00:45:54 UTC 2010

#11698: have_posts should not auto rewind
 Reporter:  mwillberg                 |        Owner:         
     Type:  defect (bug)              |       Status:  closed 
 Priority:  normal                    |    Milestone:         
Component:  General                   |      Version:         
 Severity:  minor                     |   Resolution:  invalid
 Keywords:  dev-feedback 2nd-opinion  |  
Changes (by azaozz):

  * status:  new => closed
  * version:  2.9 =>
  * resolution:  => invalid
  * milestone:  Future Release =>


 Agree with dd32. The actual loop is the `while(){}` part, if you repeat
 it, it runs twice.

 Replying to [comment:1 mwillberg]:
 > Naturally the "loop_end" hook needs some kind of flag to make sure it
 runs only once...

 It already has one: `did_action('loop_end')`.

Ticket URL: <http://core.trac.wordpress.org/ticket/11698#comment:3>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software

More information about the wp-trac mailing list