Make WordPress Core


Ignore:
Timestamp:
02/14/2010 09:32:23 AM (15 years ago)
Author:
westi
Message:

Introduce new get_generic_template() function for themes to use to bring in pieces of template.
Use in twentyten for loop.php including. See #9015.

File:
1 edited

Legend:

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

    r13141 r13146  
    66<?php if ( have_posts() ) : ?>
    77                <h1 class="page-title"><?php _e( 'Search Results for: ', 'twentyten' ); ?><span><?php the_search_query(); ?></span></h1>
    8     <?php include 'loop.php'; ?>
     8    <?php get_generic_template( 'loop', 'search' ); ?>
    99<?php else : ?>
    1010                <div id="post-0" class="post no-results not-found">
Note: See TracChangeset for help on using the changeset viewer.