WordPress.org

Make WordPress Core

Changeset 13816


Ignore:
Timestamp:
03/25/2010 10:04:27 PM (9 years ago)
Author:
westi
Message:

Switch to get_template_part Fixes #12371. Try on some narrative comments for size see #12695.

Location:
trunk/wp-content/themes/twentyten
Files:
6 edited

Legend:

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

    r13720 r13816  
    1717
    1818<?php rewind_posts(); ?>
    19 
    20 <?php get_generic_template( 'loop', 'archive' ); ?>
     19<?php
     20    /* Run the loop for the archives page to output the posts.
     21     * If you want to overload this in a child theme then include a file
     22     * called loop-archives.php and that will be used instead.
     23     */
     24     get_template_part( 'loop', 'archive' );
     25?>
    2126
    2227            </div><!-- #content -->
  • trunk/wp-content/themes/twentyten/author.php

    r13720 r13816  
    2222<?php rewind_posts(); ?>
    2323
    24 <?php get_generic_template( 'loop', 'author' ); ?>
    25 
     24<?php
     25    /* Run the loop for the author archive page to output the authors posts
     26     * If you want to overload this in a child theme then include a file
     27     * called loop-author.php and that will be used instead.
     28     */
     29     get_template_part( 'loop', 'author' );
     30?>
    2631            </div><!-- #content -->
    2732        </div><!-- #container -->
  • trunk/wp-content/themes/twentyten/category.php

    r13720 r13816  
    99                <?php $categorydesc = category_description(); if ( ! empty( $categorydesc ) ) echo apply_filters( 'archive_meta', '<div class="archive-meta">' . $categorydesc . '</div>' ); ?>
    1010
    11 <?php get_generic_template( 'loop', 'category' ); ?>
     11                <?php
     12                /* Run the loop for the category page to output the posts.
     13                 * If you want to overload this in a child theme then include a file
     14                 * called loop-category.php and that will be used instead.
     15                 */
     16                 get_template_part( 'loop', 'category' );
     17                ?>
    1218
    1319            </div><!-- #content -->
  • trunk/wp-content/themes/twentyten/index.php

    r13498 r13816  
    44            <div id="content">
    55
    6             <?php get_generic_template( 'loop', 'index' ); ?>
    7 
     6            <?php
     7            /* Run the loop to output the posts.
     8             * If you want to overload this in a child theme then include a file
     9             * called loop-index.php and that will be used instead.
     10             */
     11             get_template_part( 'loop', 'index' );
     12            ?>
    813            </div><!-- #content -->
    914        </div><!-- #container -->
  • trunk/wp-content/themes/twentyten/search.php

    r13720 r13816  
    66<?php if ( have_posts() ) : ?>
    77                <h1 class="page-title"><?php printf( __( 'Search Results for: %s', 'twentyten' ), '<span>' . get_search_query() . '</span>' ); ?></h1>
    8     <?php get_generic_template( 'loop', 'search' ); ?>
     8                <?php
     9                /* Run the loop for the search to output the results.
     10                 * If you want to overload this in a child theme then include a file
     11                 * called loop-search.php and that will be used instead.
     12                 */
     13                 get_template_part( 'loop', 'search' );
     14                ?>
    915<?php else : ?>
    1016                <div id="post-0" class="post no-results not-found">
  • trunk/wp-content/themes/twentyten/tag.php

    r13720 r13816  
    1212<?php rewind_posts(); ?>
    1313
    14 <?php get_generic_template( 'loop', 'tag' ); ?>
    15 
     14<?php
     15/* Run the loop for the tag archive to output the posts
     16 * If you want to overload this in a child theme then include a file
     17 * called loop-tag.php and that will be used instead.
     18 */
     19 get_template_part( 'loop', 'tag' );
     20?>
    1621            </div><!-- #content -->
    1722        </div><!-- #container -->
Note: See TracChangeset for help on using the changeset viewer.