Make WordPress Core

Changeset 12229


Ignore:
Timestamp:
11/19/2009 10:41:53 PM (17 years ago)
Author:
ryan
Message:

Fix custom taxonomy term links when using non-pretty permalinks. Props bookchiq. fixes #11179

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/taxonomy.php

    r12200 r12229  
    22172217
    22182218        if ( empty($termlink) ) {
    2219                 $file = get_option('home') . '/';
     2219                $file = trailingslashit( get_option('home') );
    22202220                $t = get_taxonomy($taxonomy);
    22212221                if ( $t->query_var )
     
    22252225        } else {
    22262226                $termlink = str_replace("%$taxonomy%", $slug, $termlink);
    2227                 $termlink = get_option('home') . user_trailingslashit($termlink, 'category');
     2227                $termlink = trailingslashit( get_option('home') ) . user_trailingslashit($termlink, 'category');
    22282228        }
    22292229        return apply_filters('term_link', $termlink, $term, $taxonomy);
Note: See TracChangeset for help on using the changeset viewer.