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

git-svn-id: https://develop.svn.wordpress.org/trunk@5127 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Ryan Boren 2007-03-28 17:31:28 +00:00
parent 2d804cf565
commit ff859fce24
1 changed files with 6 additions and 2 deletions

View File

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