Skip to content

Loading…

No need to rewind posts if nothing has been queued up yet #53

Merged
merged 1 commit into from

2 participants

@joshbetz
Automattic member

The only place posts are ever queued if ( is_author() ), but then rewind_posts() is run right away there so there should be no reason to rewind the loop again.

@mfields

The changes in a792ded look good to me. This is quite possibly left over from a previous version. Good catch!

@joshbetz
Automattic member

Yeah. I assumed it was just left over, possibly rewind_posts() wasn't always called right away after the_post().

@mfields

I just verified this. Please see the initial import from Toolbox:
edfeccc

@mfields mfields merged commit e8ebbf2 into Automattic:master
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
This page is out of date. Refresh to see the latest.
Showing with 0 additions and 2 deletions.
  1. +0 −2 archive.php
View
2 archive.php
@@ -67,8 +67,6 @@
?>
</header><!-- .page-header -->
- <?php rewind_posts(); ?>
-
<?php _s_content_nav( 'nav-above' ); ?>
<?php /* Start the Loop */ ?>
Something went wrong with that request. Please try again.