From 6fba9fa40c8cec16373bc9dd8d18140aefecf955 Mon Sep 17 00:00:00 2001 From: Ryan Boren Date: Tue, 1 Feb 2005 02:01:38 +0000 Subject: [PATCH] Feed link fix for bug 775. Hat tip: Kafkaesqui git-svn-id: https://develop.svn.wordpress.org/trunk@2181 602fd350-edb4-49c9-b593-d223f7449a82 --- wp-includes/template-functions-links.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/wp-includes/template-functions-links.php b/wp-includes/template-functions-links.php index 5d86745b36..3a3bde19de 100644 --- a/wp-includes/template-functions-links.php +++ b/wp-includes/template-functions-links.php @@ -161,8 +161,8 @@ function get_feed_link($feed='rss2') { $feed = ''; $permalink = str_replace('%feed%', $feed, $permalink); - $output = get_settings('home') . "/$permalink/"; - $output = preg_replace('#/+#', '/', $output); + $permalink = preg_replace('#/+#', '/', "/$permalink/"); + $output = get_settings('home') . $permalink; } else { if ( false !== strpos($feed, 'comments_') ) $feed = str_replace('comments_', 'comments', $feed);