Changeset 18540 for trunk/wp-includes/rewrite.php
- Timestamp:
- 08/12/2011 01:41:23 AM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/rewrite.php
r18538 r18540 1499 1499 $robots_rewrite = ( empty( $home_path['path'] ) || '/' == $home_path['path'] ) ? array( 'robots\.txt$' => $this->index . '?robots=1' ) : array(); 1500 1500 1501 // Default Feed rules - These are require to allow for the direct access files to work with permalink structure starting with %category% 1502 $default_feeds = array( '.*wp-atom.php$' => $this->index . '?feed=atom', 1503 '.*wp-rdf.php$' => $this->index . '?feed=rss2', 1504 '.*wp-rss.php$' => $this->index . '?feed=rss2', 1505 '.*wp-rss2.php$' => $this->index . '?feed=rss2', 1506 '.*wp-feed.php$' => $this->index . '?feed=feed', 1507 '.*wp-commentsrss2.php$' => $this->index . '?feed=rss2&withcomments=1'); 1501 // Old feed files 1502 $old_feed_files = array( '.*wp-(atom|rdf|rss|rss2|feed|commentsrss2).php$' => $this->index . '?feed=old' ); 1508 1503 1509 1504 // Registration rules … … 1559 1554 // Put them together. 1560 1555 if ( $this->use_verbose_page_rules ) 1561 $this->rules = array_merge($this->extra_rules_top, $robots_rewrite, $ default_feeds, $registration_pages, $page_rewrite, $root_rewrite, $comments_rewrite, $search_rewrite, $author_rewrite, $date_rewrite, $post_rewrite, $this->extra_rules);1556 $this->rules = array_merge($this->extra_rules_top, $robots_rewrite, $old_feed_files, $registration_pages, $page_rewrite, $root_rewrite, $comments_rewrite, $search_rewrite, $author_rewrite, $date_rewrite, $post_rewrite, $this->extra_rules); 1562 1557 else 1563 $this->rules = array_merge($this->extra_rules_top, $robots_rewrite, $ default_feeds, $registration_pages, $root_rewrite, $comments_rewrite, $search_rewrite, $author_rewrite, $date_rewrite, $post_rewrite, $page_rewrite, $this->extra_rules);1558 $this->rules = array_merge($this->extra_rules_top, $robots_rewrite, $old_feed_files, $registration_pages, $root_rewrite, $comments_rewrite, $search_rewrite, $author_rewrite, $date_rewrite, $post_rewrite, $page_rewrite, $this->extra_rules); 1564 1559 1565 1560 do_action_ref_array('generate_rewrite_rules', array(&$this));
Note: See TracChangeset
for help on using the changeset viewer.