WordPress.org

Make WordPress Core

Ticket #23837: 23837.2.diff

File 23837.2.diff, 1.1 KB (added by SergeyBiryukov, 2 years ago)
  • wp-content/themes/twentyten/loop.php

     
    9292                        <?php if ( function_exists( 'get_post_format' ) && 'gallery' == get_post_format( $post->ID ) ) : ?> 
    9393                                <a href="<?php echo get_post_format_link( 'gallery' ); ?>" title="<?php esc_attr_e( 'View Galleries', 'twentyten' ); ?>"><?php _e( 'More Galleries', 'twentyten' ); ?></a> 
    9494                                <span class="meta-sep">|</span> 
    95                         <?php elseif ( in_category( _x( 'gallery', 'gallery category slug', 'twentyten' ) ) ) : ?> 
     95                        <?php elseif ( term_exists( _x( 'gallery', 'gallery category slug', 'twentyten' ), 'category' ) && in_category( _x( 'gallery', 'gallery category slug', 'twentyten' ) ) ) : ?> 
    9696                                <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> 
    9797                                <span class="meta-sep">|</span> 
    9898                        <?php endif; ?>