mirror of
git://develop.git.wordpress.org/
synced 2025-02-28 02:22:25 +01:00
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: https://develop.svn.wordpress.org/trunk@14501 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
1fcb5f3a63
commit
5c534591ae
@ -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>' ); ?>
|
||||
|
Loading…
x
Reference in New Issue
Block a user