Changeset 14924 for trunk/wp-includes/link-template.php
- Timestamp:
- 05/26/2010 02:42:15 AM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/link-template.php
r14901 r14924 587 587 function get_term_feed_link( $term_id, $taxonomy = 'category', $feed = '' ) { 588 588 global $wp_rewrite; 589 589 590 590 $term_id = ( int ) $term_id; 591 591 592 592 $term = get_term( $term_id, $taxonomy ); 593 593 594 594 if ( empty( $term ) || is_wp_error( $term ) ) 595 595 return false; … … 602 602 if ( '' == $permalink_structure ) { 603 603 if ( 'category' == $taxonomy ) { 604 $link = home_url("?feed=$feed&cat=$term_id"); 604 $link = home_url("?feed=$feed&cat=$term_id"); 605 605 } 606 606 elseif ( 'post_tag' == $taxonomy ) { 607 $link = home_url("?feed=$feed&tag=$term->slug"); 607 $link = home_url("?feed=$feed&tag=$term->slug"); 608 608 } else { 609 609 $t = get_taxonomy( $taxonomy ); … … 626 626 else 627 627 $link = apply_filters( 'taxonomy_feed_link', $link, $feed, $taxonomy ); 628 628 629 629 630 630 return $link; … … 2186 2186 } elseif ( 'post' == $context ) { 2187 2187 $post = get_post($id); 2188 $post_id = $post->ID; 2188 $post_id = $post->ID; 2189 2189 } 2190 2190
Note: See TracChangeset
for help on using the changeset viewer.