Ticket #3214: fix-feed-rewrite-rules.diff
File fix-feed-rewrite-rules.diff, 2.1 KB (added by , 18 years ago) |
---|
-
wp-includes/rewrite.php
700 700 // robots.txt 701 701 $robots_rewrite = array('robots.txt$' => $this->index . '?robots=1'); 702 702 703 //Default Feed rules - These are require to allow for the direct access files to work with permalink structure starting with %category% 704 $default_feeds = array( 'wp-atom.php$' => $this->index .'?feed=atom', 705 'wp-rdf.php$' => $this->index .'?feed=rdf', 706 'wp-rss.php$' => $this->index .'?feed=rss', 707 'wp-rss2.php$' => $this->index .'?feed=rss2', 708 'wp-feed.php$' => $this->index .'?feed=feed', 709 'wp-commentsrss2.php$' => $this->index . '?feed=rss2&withcomments=1'); 710 703 711 // Post 704 712 $post_rewrite = $this->generate_rewrite_rules($this->permalink_structure, EP_PERMALINK); 705 713 $post_rewrite = apply_filters('post_rewrite_rules', $post_rewrite); … … 734 742 $page_rewrite = apply_filters('page_rewrite_rules', $page_rewrite); 735 743 736 744 // Put them together. 737 $this->rules = array_merge($robots_rewrite, $ page_rewrite, $root_rewrite, $comments_rewrite, $search_rewrite, $category_rewrite, $author_rewrite, $date_rewrite, $post_rewrite, $this->extra_rules);745 $this->rules = array_merge($robots_rewrite, $default_feeds, $page_rewrite, $root_rewrite, $comments_rewrite, $search_rewrite, $category_rewrite, $author_rewrite, $date_rewrite, $post_rewrite, $this->extra_rules); 738 746 739 747 do_action_ref_array('generate_rewrite_rules', array(&$this)); 740 748 $this->rules = apply_filters('rewrite_rules_array', $this->rules); … … 889 897 } 890 898 } 891 899 892 ?> 893 No newline at end of file 900 ?> -
wp-includes/version.php
3 3 // This holds the version number in a separate file so we can bump it without cluttering the SVN 4 4 5 5 $wp_version = '2.1-alpha3'; 6 $wp_db_version = 3846;6 $wp_db_version = 4350; 7 7 8 ?> 9 No newline at end of file 8 ?>