From 4b20540781ef8807691e4063cf8d55258bb7bcb2 Mon Sep 17 00:00:00 2001 From: ryan Date: Fri, 20 Nov 2009 14:23:41 +0000 Subject: [PATCH] Fix double slashing. Props scribu. fixes #11061 git-svn-id: http://svn.automattic.com/wordpress/trunk@12241 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/taxonomy.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wp-includes/taxonomy.php b/wp-includes/taxonomy.php index 258b9b85e..72c82b8ed 100644 --- a/wp-includes/taxonomy.php +++ b/wp-includes/taxonomy.php @@ -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); }