WordPress.org

Make WordPress Core

Ticket #13638: 13638.4.diff

File 13638.4.diff, 2.0 KB (added by wpmuguru, 5 years ago)

teh rewrites for review

  • wp-includes/rewrite.php

     
    15761576                                                                '.*wp-feed.php$'        =>      $this->index . '?feed=feed', 
    15771577                                                                '.*wp-commentsrss2.php$'        =>      $this->index . '?feed=rss2&withcomments=1'); 
    15781578 
     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 
    15791586                // Post 
    15801587                $post_rewrite = $this->generate_rewrite_rules($this->permalink_structure, EP_PERMALINK); 
    15811588                $post_rewrite = apply_filters('post_rewrite_rules', $post_rewrite); 
     
    16231630 
    16241631                // Put them together. 
    16251632                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); 
    16271634                else 
    1628                         $this->rules = array_merge($this->extra_rules_top, $robots_rewrite, $default_feeds, $root_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); 
    16291636 
    16301637                do_action_ref_array('generate_rewrite_rules', array(&$this)); 
    16311638                $this->rules = apply_filters('rewrite_rules_array', $this->rules);