WordPress.org

Make WordPress Core

Changeset 14501


Ignore:
Timestamp:
05/07/10 18:13:20 (4 years ago)
Author:
nacin
Message:

Make sure we're localizing the Gallery category in Twenty Ten. Use get_term_link because it can look up the category by the slug, instead of an extra get_cat_ID call. See [14350] for previous changes.

File:
1 edited

Legend:

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

    r14433 r14501  
    7272 
    7373            <div class="entry-utility"> 
    74                 <?php 
    75                     $category_id = get_cat_ID( 'Gallery' ); 
    76                     $category_link = get_category_link( $category_id ); 
    77                 ?> 
    78                 <a href="<?php echo $category_link; ?>" title="<?php esc_attr_e( 'View posts in the Gallery category', 'twentyten' ); ?>"><?php _e( 'More Galleries', 'twentyten' ); ?></a> 
     74                <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> 
    7975                <span class="meta-sep"> | </span> 
    8076                <span class="comments-link"><?php comments_popup_link( __( 'Leave a comment', 'twentyten' ), __( '1 Comment', 'twentyten' ), __( '% Comments', 'twentyten' ) ); ?></span> 
Note: See TracChangeset for help on using the changeset viewer.