Fix double slashing. Props scribu. fixes #11061
git-svn-id: https://develop.svn.wordpress.org/trunk@12241 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
6f4ae7b89a
commit
446d22adcd
@ -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
Block a user