WordPress.org

Make WordPress Core

Changeset 16589


Ignore:
Timestamp:
11/25/2010 06:59:19 PM (11 years ago)
Author:
nacin
Message:

Only link to the Gallery category if the post is in the category. (It may be a format.) see #15506, see #15378.

File:
1 edited

Legend:

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

    r16480 r16589  
    9090
    9191            <div class="entry-utility">
     92            <?php if ( in_category( _x( 'gallery', 'gallery category slug', 'twentyten' ) ) ) : ?>
    9293                <a href="<?php echo get_term_link( _x( 'gallery', 'gallery category slug', 'twentyten' ), 'category' ); ?>" title="<?php esc_attr_e( 'View posts in the Gallery category', 'twentyten' ); ?>"><?php _e( 'More Galleries', 'twentyten' ); ?></a>
    9394                <span class="meta-sep">|</span>
     95            <?php endif; ?>
    9496                <span class="comments-link"><?php comments_popup_link( __( 'Leave a comment', 'twentyten' ), __( '1 Comment', 'twentyten' ), __( '% Comments', 'twentyten' ) ); ?></span>
    9597                <?php edit_post_link( __( 'Edit', 'twentyten' ), '<span class="meta-sep">|</span> <span class="edit-link">', '</span>' ); ?>
Note: See TracChangeset for help on using the changeset viewer.