Set $paged and $walk_dirs to false in calls to WP_Rewrite::generate_rewrite_rules() for posts/pages. See #19876.

git-svn-id: https://develop.svn.wordpress.org/trunk@19737 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Jon Cave 2012-01-23 19:03:56 +00:00
parent cf4e9851fe
commit 3652e88cad
1 changed files with 2 additions and 2 deletions

View File

@ -816,7 +816,7 @@ class WP_Rewrite {
// the extra .? at the beginning prevents clashes with other regular expressions in the rules array
$this->add_rewrite_tag( '%pagename%', '(.?.+?)', 'pagename=' );
return $this->generate_rewrite_rules( $this->get_page_permastruct(), EP_PAGES );
return $this->generate_rewrite_rules( $this->get_page_permastruct(), EP_PAGES, false, true, false, false );
}
/**
@ -1489,7 +1489,7 @@ class WP_Rewrite {
}
// Post
$post_rewrite = $this->generate_rewrite_rules($this->permalink_structure, EP_PERMALINK);
$post_rewrite = $this->generate_rewrite_rules( $this->permalink_structure, EP_PERMALINK, false, true, false, false );
$post_rewrite = apply_filters('post_rewrite_rules', $post_rewrite);
// Date