Feed link fix for bug 775. Hat tip: Kafkaesqui
git-svn-id: https://develop.svn.wordpress.org/trunk@2181 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
2e3009c374
commit
6fba9fa40c
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user