Make WordPress Core


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

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • 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">
Note: See TracChangeset for help on using the changeset viewer.