Ticket #13638: 13638.4.diff
File 13638.4.diff, 2.0 KB (added by , 14 years ago) |
---|
-
wp-includes/rewrite.php
1576 1576 '.*wp-feed.php$' => $this->index . '?feed=feed', 1577 1577 '.*wp-commentsrss2.php$' => $this->index . '?feed=rss2&withcomments=1'); 1578 1578 1579 // Registration rules 1580 $registration_pages = array(); 1581 if ( is_multisite() && is_main_site() ) { 1582 $registration_pages['.*wp-signup.php$'] = $this->index . '?signup=true'; 1583 $registration_pages['.*wp-activate.php$'] = $this->index . '?activate=true'; 1584 } 1585 1579 1586 // Post 1580 1587 $post_rewrite = $this->generate_rewrite_rules($this->permalink_structure, EP_PERMALINK); 1581 1588 $post_rewrite = apply_filters('post_rewrite_rules', $post_rewrite); … … 1623 1630 1624 1631 // Put them together. 1625 1632 if ( $this->use_verbose_page_rules ) 1626 $this->rules = array_merge($this->extra_rules_top, $robots_rewrite, $default_feeds, $ page_rewrite, $root_rewrite, $comments_rewrite, $search_rewrite, $category_rewrite, $tag_rewrite, $author_rewrite, $date_rewrite, $post_rewrite, $this->extra_rules);1633 $this->rules = array_merge($this->extra_rules_top, $robots_rewrite, $default_feeds, $registration_pages, $page_rewrite, $root_rewrite, $comments_rewrite, $search_rewrite, $category_rewrite, $tag_rewrite, $author_rewrite, $date_rewrite, $post_rewrite, $this->extra_rules); 1627 1634 else 1628 $this->rules = array_merge($this->extra_rules_top, $robots_rewrite, $default_feeds, $r oot_rewrite, $comments_rewrite, $search_rewrite, $category_rewrite, $tag_rewrite, $author_rewrite, $date_rewrite, $post_rewrite, $page_rewrite, $this->extra_rules);1635 $this->rules = array_merge($this->extra_rules_top, $robots_rewrite, $default_feeds, $registration_pages, $root_rewrite, $comments_rewrite, $search_rewrite, $category_rewrite, $tag_rewrite, $author_rewrite, $date_rewrite, $post_rewrite, $page_rewrite, $this->extra_rules); 1629 1636 1630 1637 do_action_ref_array('generate_rewrite_rules', array(&$this)); 1631 1638 $this->rules = apply_filters('rewrite_rules_array', $this->rules);