Make WordPress Core


Ignore:
Timestamp:
06/10/2011 11:01:16 PM (15 years ago)
Author:
azaozz
Message:

Twenty Eleven code review and cleanup, props dd32, fixes #17748

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-content/themes/twentyeleven/archive.php

    r17959 r18253  
    1818                        <div id="content" role="main">
    1919
    20                                 <?php
    21                                         /* Queue the first post, that way we know
    22                                          * what date we're dealing with (if that is the case).
    23                                          *
    24                                          * We reset this later so we can run the loop
    25                                          * properly with a call to rewind_posts().
    26                                          */
    27                                         if ( have_posts() )
    28                                                 the_post();
    29                                 ?>
    30 
    3120                                <header class="page-header">
    3221                                        <h1 class="page-title">
     
    4231                                        </h1>
    4332                                </header>
    44 
    45                                 <?php
    46                                         /* Since we called the_post() above, we need to
    47                                          * rewind the loop back to the beginning that way
    48                                          * we can run the loop properly, in full.
    49                                          */
    50                                         rewind_posts();
    51                                 ?>
    5233
    5334                                <?php twentyeleven_content_nav( 'nav-above' ); ?>
Note: See TracChangeset for help on using the changeset viewer.