Make WordPress Core

Changeset 11791


Ignore:
Timestamp:
08/08/2009 02:26:49 PM (16 years ago)
Author:
westi
Message:

Correct comments and remove unecessary echos from the default themes sidebar templete file. Fixes #10335 props JeremyVisser.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-content/themes/default/sidebar.php

    r11013 r11791  
    2727            <p>You are currently browsing the archives for the <?php single_cat_title(''); ?> category.</p>
    2828
    29             <?php /* If this is a yearly archive */ } elseif (is_day()) { ?>
    30             <p>You are currently browsing the <a href="<?php bloginfo('url'); ?>/"><?php echo bloginfo('name'); ?></a> blog archives
     29            <?php /* If this is a daily archive */ } elseif (is_day()) { ?>
     30            <p>You are currently browsing the <a href="<?php bloginfo('url'); ?>/"><?php bloginfo('name'); ?></a> blog archives
    3131            for the day <?php the_time('l, F jS, Y'); ?>.</p>
    3232
    3333            <?php /* If this is a monthly archive */ } elseif (is_month()) { ?>
    34             <p>You are currently browsing the <a href="<?php bloginfo('url'); ?>/"><?php echo bloginfo('name'); ?></a> blog archives
     34            <p>You are currently browsing the <a href="<?php bloginfo('url'); ?>/"><?php bloginfo('name'); ?></a> blog archives
    3535            for <?php the_time('F, Y'); ?>.</p>
    3636
    3737            <?php /* If this is a yearly archive */ } elseif (is_year()) { ?>
    38             <p>You are currently browsing the <a href="<?php bloginfo('url'); ?>/"><?php echo bloginfo('name'); ?></a> blog archives
     38            <p>You are currently browsing the <a href="<?php bloginfo('url'); ?>/"><?php bloginfo('name'); ?></a> blog archives
    3939            for the year <?php the_time('Y'); ?>.</p>
    4040
    41             <?php /* If this is a monthly archive */ } elseif (is_search()) { ?>
    42             <p>You have searched the <a href="<?php echo bloginfo('url'); ?>/"><?php echo bloginfo('name'); ?></a> blog archives
     41            <?php /* If this is a search result */ } elseif (is_search()) { ?>
     42            <p>You have searched the <a href="<?php bloginfo('url'); ?>/"><?php bloginfo('name'); ?></a> blog archives
    4343            for <strong>'<?php the_search_query(); ?>'</strong>. If you are unable to find anything in these search results, you can try one of these links.</p>
    4444
    45             <?php /* If this is a monthly archive */ } elseif (isset($_GET['paged']) && !empty($_GET['paged'])) { ?>
    46             <p>You are currently browsing the <a href="<?php echo bloginfo('url'); ?>/"><?php echo bloginfo('name'); ?></a> blog archives.</p>
     45            <?php /* If this set is paginated */ } elseif (isset($_GET['paged']) && !empty($_GET['paged'])) { ?>
     46            <p>You are currently browsing the <a href="<?php bloginfo('url'); ?>/"><?php bloginfo('name'); ?></a> blog archives.</p>
    4747
    4848            <?php } ?>
Note: See TracChangeset for help on using the changeset viewer.