Changeset 4839
- Timestamp:
- 01/30/2007 06:19:57 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2.0/wp-includes/classes.php
r4826 r4839 1320 1320 return $rewrite; 1321 1321 } 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 1322 1330 1323 1331 // Post … … 1355 1363 1356 1364 // 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); 1358 1366 1359 1367 do_action('generate_rewrite_rules', array(&$this));
Note: See TracChangeset
for help on using the changeset viewer.