Ticket #23837: 23837.diff
| File 23837.diff, 1.9 KB (added by , 14 years ago) |
|---|
-
wp-includes/category-template.php
12 12 * @since 1.0.0 13 13 * @see get_term_link() 14 14 * 15 * @param int|object $category Category ID or object.15 * @param int|object|string $category Category ID, object, or string. 16 16 * @return string Link on success, empty string if category does not exist. 17 17 */ 18 18 function get_category_link( $category ) { 19 if ( ! is_object( $category ) )20 $category = (int) $category;21 22 19 $category = get_term_link( $category, 'category' ); 23 20 24 21 if ( is_wp_error( $category ) ) -
wp-content/themes/twentyten/loop.php
93 93 <a href="<?php echo get_post_format_link( 'gallery' ); ?>" title="<?php esc_attr_e( 'View Galleries', 'twentyten' ); ?>"><?php _e( 'More Galleries', 'twentyten' ); ?></a> 94 94 <span class="meta-sep">|</span> 95 95 <?php elseif ( in_category( _x( 'gallery', 'gallery category slug', 'twentyten' ) ) ) : ?> 96 <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>96 <a href="<?php echo get_category_link( _x( 'gallery', 'gallery category slug', 'twentyten' ) ); ?>" title="<?php esc_attr_e( 'View posts in the Gallery category', 'twentyten' ); ?>"><?php _e( 'More Galleries', 'twentyten' ); ?></a> 97 97 <span class="meta-sep">|</span> 98 98 <?php endif; ?> 99 99 <span class="comments-link"><?php comments_popup_link( __( 'Leave a comment', 'twentyten' ), __( '1 Comment', 'twentyten' ), __( '% Comments', 'twentyten' ) ); ?></span>