Make WordPress Core


Ignore:
Timestamp:
02/19/2010 10:41:15 AM (15 years ago)
Author:
dd32
Message:

Remove Unneeded the_post/rewind_posts() calls, Add a "No posts for this archive" type message to the loop. See #9015

File:
1 edited

Legend:

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

    r13146 r13218  
    44            <div id="content">
    55
    6 <?php the_post(); ?>
    7 
    86                <h1 class="page-title"><?php _e( 'Category Archives:', 'twentyten' ); ?> <span><?php single_cat_title(); ?></span></span></h1>
    97                <?php $categorydesc = category_description(); if ( !empty($categorydesc) ) echo apply_filters( 'archive_meta', '<div class="archive-meta">' . $categorydesc . '</div>' ); ?>
    10 
    11 <?php rewind_posts(); ?>
    128
    139<?php get_generic_template( 'loop', 'category' ); ?>
Note: See TracChangeset for help on using the changeset viewer.