Fix double slashing. Props scribu. fixes #11061
git-svn-id: http://svn.automattic.com/wordpress/trunk@12241 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
c8dd53cdc3
commit
4b20540781
|
@ -2224,7 +2224,7 @@ function get_term_link( $term, $taxonomy ) {
|
|||
$termlink = "$file?taxonomy=$taxonomy&term=$slug";
|
||||
} else {
|
||||
$termlink = str_replace("%$taxonomy%", $slug, $termlink);
|
||||
$termlink = trailingslashit( get_option('home') ) . user_trailingslashit($termlink, 'category');
|
||||
$termlink = get_option('home') . user_trailingslashit($termlink, 'category');
|
||||
}
|
||||
return apply_filters('term_link', $termlink, $term, $taxonomy);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue