WordPress.org

Make WordPress Core

Ticket #6110: 6110.rewrite.diff

File 6110.rewrite.diff, 1.3 KB (added by DD32, 7 years ago)
  • wp-includes/rewrite.php

     
    834834                if ( $this->use_verbose_page_rules ) 
    835835                        $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); 
    836836                else 
    837                         $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); 
     837                        $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, $this->extra_rules); 
    838838 
    839839                do_action_ref_array('generate_rewrite_rules', array(&$this)); 
    840840                $this->rules = apply_filters('rewrite_rules_array', $this->rules); 
    841841 
     842                if ( ! $this->use_verbose_page_rules ) 
     843                        $this->rules = array_merge($this->rules, $page_rewrite); 
     844 
    842845                return $this->rules; 
    843846        } 
    844847