Make WordPress Core

Changeset 4839


Ignore:
Timestamp:
01/30/2007 06:19:57 PM (18 years ago)
Author:
markjaquith
Message:

Fix feed links when using %category% permalink structure. Props westi. fixes #3214

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2.0/wp-includes/classes.php

    r4826 r4839  
    13201320            return $rewrite;
    13211321        }
     1322        //Default Feed rules - These are require to allow for the direct access files to work with permalink structure starting with %category%
     1323        $default_feeds = array( 'wp-atom.php$'  =>  $this->index .'?feed=atom',
     1324                                'wp-rdf.php$'   =>  $this->index .'?feed=rdf',
     1325                                'wp-rss.php$'   =>  $this->index .'?feed=rss',
     1326                                'wp-rss2.php$'  =>  $this->index .'?feed=rss2',
     1327                                'wp-feed.php$'  =>  $this->index .'?feed=feed',
     1328                                'wp-commentsrss2.php$'  =>  $this->index . '?feed=rss2&withcomments=1');
     1329
    13221330
    13231331        // Post
     
    13551363
    13561364        // Put them together.
    1357         $this->rules = array_merge($page_rewrite, $root_rewrite, $comments_rewrite, $search_rewrite, $category_rewrite, $author_rewrite, $date_rewrite, $post_rewrite);
     1365        $this->rules = array_merge($default_feeds, $page_rewrite, $root_rewrite, $comments_rewrite, $search_rewrite, $category_rewrite, $author_rewrite, $date_rewrite, $post_rewrite);
    13581366
    13591367        do_action('generate_rewrite_rules', array(&$this));
Note: See TracChangeset for help on using the changeset viewer.