Ticket #14991: 14991.3.diff
File 14991.3.diff, 2.0 KB (added by , 14 years ago) |
---|
-
wp-includes/rewrite.php
1550 1550 $page_rewrite = apply_filters('page_rewrite_rules', $page_rewrite); 1551 1551 1552 1552 // Extra permastructs 1553 $permastruct_rewrite = array(); 1553 1554 foreach ( $this->extra_permastructs as $permastructname => $permastruct ) { 1554 1555 if ( is_array($permastruct) ) 1555 1556 $rules = $this->generate_rewrite_rules($permastruct[0], $permastruct[1]); … … 1560 1561 if ( 'post_tag' == $permastructname ) 1561 1562 $rules = apply_filters('tag_rewrite_rules', $rules); 1562 1563 1563 $ this->extra_rules_top = array_merge($this->extra_rules_top, $rules);1564 $permastruct_rewrite = array_merge($permastruct_rewrite, $rules); 1564 1565 } 1565 1566 1566 1567 // Put them together. 1567 1568 if ( $this->use_verbose_page_rules ) 1568 $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);1569 $this->rules = $this->extra_rules_top + $permastruct_rewrite + $robots_rewrite + $default_feeds + $registration_pages + $page_rewrite + $root_rewrite + $comments_rewrite + $search_rewrite + $author_rewrite + $date_rewrite + $post_rewrite + $this->extra_rules; 1569 1570 else 1570 $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);1571 $this->rules = $this->extra_rules_top + $permastruct_rewrite + $robots_rewrite + $default_feeds + $registration_pages + $root_rewrite + $comments_rewrite + $search_rewrite + $author_rewrite + $date_rewrite + $post_rewrite + $page_rewrite + $this->extra_rules; 1571 1572 1572 1573 do_action_ref_array('generate_rewrite_rules', array(&$this)); 1573 1574 $this->rules = apply_filters('rewrite_rules_array', $this->rules);