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.

git-svn-id: http://svn.automattic.com/wordpress/trunk@14501 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
nacin 2010-05-07 18:13:20 +00:00
parent d06c6634ae
commit 4340b23564
1 changed files with 1 additions and 5 deletions

View File

@ -71,11 +71,7 @@
</div><!-- .entry-content -->
<div class="entry-utility">
<?php
$category_id = get_cat_ID( 'Gallery' );
$category_link = get_category_link( $category_id );
?>
<a href="<?php echo $category_link; ?>" title="<?php esc_attr_e( 'View posts in the Gallery category', 'twentyten' ); ?>"><?php _e( 'More Galleries', 'twentyten' ); ?></a>
<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>
<span class="meta-sep"> | </span>
<span class="comments-link"><?php comments_popup_link( __( 'Leave a comment', 'twentyten' ), __( '1 Comment', 'twentyten' ), __( '% Comments', 'twentyten' ) ); ?></span>
<?php edit_post_link( __( 'Edit', 'twentyten' ), '<span class="meta-sep">|</span> <span class="edit-link">', '</span>' ); ?>