Make WordPress Core


Ignore:
Timestamp:
05/26/2010 02:42:15 AM (14 years ago)
Author:
ryan
Message:

Strip trailing whitespace

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/link-template.php

    r14901 r14924  
    587587function get_term_feed_link( $term_id, $taxonomy = 'category', $feed = '' ) {
    588588    global $wp_rewrite;
    589    
     589
    590590    $term_id = ( int ) $term_id;
    591591
    592592    $term = get_term( $term_id, $taxonomy  );
    593    
     593
    594594    if ( empty( $term ) || is_wp_error( $term ) )
    595595        return false;
     
    602602    if ( '' == $permalink_structure ) {
    603603        if ( 'category' == $taxonomy ) {
    604             $link = home_url("?feed=$feed&cat=$term_id"); 
     604            $link = home_url("?feed=$feed&cat=$term_id");
    605605        }
    606606        elseif ( 'post_tag' == $taxonomy ) {
    607             $link = home_url("?feed=$feed&tag=$term->slug"); 
     607            $link = home_url("?feed=$feed&tag=$term->slug");
    608608        } else {
    609609            $t = get_taxonomy( $taxonomy );
     
    626626    else
    627627        $link = apply_filters( 'taxonomy_feed_link', $link, $feed, $taxonomy );
    628    
     628
    629629
    630630    return $link;
     
    21862186    } elseif ( 'post' == $context ) {
    21872187        $post = get_post($id);
    2188         $post_id = $post->ID; 
     2188        $post_id = $post->ID;
    21892189    }
    21902190
Note: See TracChangeset for help on using the changeset viewer.