[wp-trac] [WordPress Trac] #11698: have_posts should not auto rewind
WordPress Trac
wp-trac at lists.automattic.com
Mon Jan 18 21:38:01 UTC 2010
#11698: have_posts should not auto rewind
--------------------------------------+-------------------------------------
Reporter: mwillberg | Owner:
Type: defect (bug) | Status: reopened
Priority: normal | Milestone:
Component: General | Version:
Severity: minor | Resolution:
Keywords: dev-feedback 2nd-opinion |
--------------------------------------+-------------------------------------
Comment(by filosofo):
Just change
{{{
while (have_posts() && ($tmp > 0)) {
}}}
to
{{{
while (($tmp > 0) && have_posts()) {
}}}
so have_posts() isn't called when you don't want it to be.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/11698#comment:7>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list