Don't output empty list. Props pishmishy. fixes #3779

git-svn-id: http://svn.automattic.com/wordpress/trunk@5127 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
ryan 2007-03-28 17:31:28 +00:00
parent fdac6628a7
commit 9ed04eae80
1 changed files with 6 additions and 2 deletions

View File

@ -11,7 +11,10 @@
</li>
-->
<li>
<?php if ( is_404() || is_category() || is_day() || is_month() ||
is_year() || is_search() || is_paged() ) {
?> <li>
<?php /* If this is a 404 page */ if (is_404()) { ?>
<?php /* If this is a category archive */ } elseif (is_category()) { ?>
<p>You are currently browsing the archives for the <?php single_cat_title(''); ?> category.</p>
@ -36,7 +39,8 @@
<p>You are currently browsing the <a href="<?php echo bloginfo('url'); ?>/"><?php echo bloginfo('name'); ?></a> weblog archives.</p>
<?php } ?>
</li>
</li> <?php }?>
<?php wp_list_pages('title_li=<h2>Pages</h2>' ); ?>