Remove old "site" page rewrite rules.
git-svn-id: http://svn.automattic.com/wordpress/trunk@2147 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
5bde51754d
commit
3166eee481
|
@ -1088,12 +1088,8 @@ class WP_Rewrite {
|
||||||
$page_rewrite = $this->page_rewrite_rules();
|
$page_rewrite = $this->page_rewrite_rules();
|
||||||
$page_rewrite = apply_filters('page_rewrite_rules', $page_rewrite);
|
$page_rewrite = apply_filters('page_rewrite_rules', $page_rewrite);
|
||||||
|
|
||||||
// Deprecated style static pages
|
|
||||||
$page_structure = $this->root . 'site/%pagename%';
|
|
||||||
$old_page_rewrite = $this->generate_rewrite_rules($page_structure);
|
|
||||||
|
|
||||||
// Put them together.
|
// Put them together.
|
||||||
$this->rules = $page_rewrite + $root_rewrite + $comments_rewrite + $old_page_rewrite + $search_rewrite + $category_rewrite + $author_rewrite + $date_rewrite + $post_rewrite;
|
$this->rules = $page_rewrite + $root_rewrite + $comments_rewrite + $search_rewrite + $category_rewrite + $author_rewrite + $date_rewrite + $post_rewrite;
|
||||||
|
|
||||||
do_action('generate_rewrite_rules', '');
|
do_action('generate_rewrite_rules', '');
|
||||||
$this->rules = apply_filters('rewrite_rules_array', $this->rules);
|
$this->rules = apply_filters('rewrite_rules_array', $this->rules);
|
||||||
|
|
Loading…
Reference in New Issue