Feed link fix for bug 775. Hat tip: Kafkaesqui
git-svn-id: http://svn.automattic.com/wordpress/trunk@2181 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
a90237eb16
commit
85e1235b65
|
@ -161,8 +161,8 @@ function get_feed_link($feed='rss2') {
|
||||||
$feed = '';
|
$feed = '';
|
||||||
|
|
||||||
$permalink = str_replace('%feed%', $feed, $permalink);
|
$permalink = str_replace('%feed%', $feed, $permalink);
|
||||||
$output = get_settings('home') . "/$permalink/";
|
$permalink = preg_replace('#/+#', '/', "/$permalink/");
|
||||||
$output = preg_replace('#/+#', '/', $output);
|
$output = get_settings('home') . $permalink;
|
||||||
} else {
|
} else {
|
||||||
if ( false !== strpos($feed, 'comments_') )
|
if ( false !== strpos($feed, 'comments_') )
|
||||||
$feed = str_replace('comments_', 'comments', $feed);
|
$feed = str_replace('comments_', 'comments', $feed);
|
||||||
|
|
Loading…
Reference in New Issue