Make WordPress Core

Changeset 2181


Ignore:
Timestamp:
02/01/2005 02:01:38 AM (20 years ago)
Author:
rboren
Message:

Feed link fix for bug 775. Hat tip: Kafkaesqui

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/template-functions-links.php

    r2152 r2181  
    162162
    163163        $permalink = str_replace('%feed%', $feed, $permalink);
    164         $output =  get_settings('home') . "/$permalink/";
    165         $output = preg_replace('#/+#', '/', $output);
     164        $permalink = preg_replace('#/+#', '/', "/$permalink/");
     165        $output =  get_settings('home') . $permalink;
    166166    } else {
    167167        if ( false !== strpos($feed, 'comments_') )
Note: See TracChangeset for help on using the changeset viewer.