Changeset 21818 for trunk/wp-includes/rewrite.php
- Timestamp:
- 09/11/2012 08:11:39 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/rewrite.php
r21810 r21818 1526 1526 $robots_rewrite = ( empty( $home_path['path'] ) || '/' == $home_path['path'] ) ? array( 'robots\.txt$' => $this->index . '?robots=1' ) : array(); 1527 1527 1528 // Old feed files 1529 $old_feed_files = array( '.*wp-(atom|rdf|rss|rss2|feed|commentsrss2)\.php$' => $this->index . '?feed=old' ); 1528 // Old feed and service files 1529 $deprecated_files = array( 1530 '.*wp-(atom|rdf|rss|rss2|feed|commentsrss2)\.php$' => $this->index . '?feed=old', 1531 '.*wp-app\.php$' => $this->index . '?error=403', 1532 ); 1530 1533 1531 1534 // Registration rules … … 1586 1589 // Put them together. 1587 1590 if ( $this->use_verbose_page_rules ) 1588 $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, $page_rewrite, $post_rewrite, $this->extra_rules);1591 $this->rules = array_merge($this->extra_rules_top, $robots_rewrite, $deprecated_files, $old_service_files, $registration_pages, $root_rewrite, $comments_rewrite, $search_rewrite, $author_rewrite, $date_rewrite, $page_rewrite, $post_rewrite, $this->extra_rules); 1589 1592 else 1590 $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);1593 $this->rules = array_merge($this->extra_rules_top, $robots_rewrite, $deprecated_files, $old_service_files, $registration_pages, $root_rewrite, $comments_rewrite, $search_rewrite, $author_rewrite, $date_rewrite, $post_rewrite, $page_rewrite, $this->extra_rules); 1591 1594 1592 1595 do_action_ref_array('generate_rewrite_rules', array(&$this));
Note: See TracChangeset
for help on using the changeset viewer.