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

git-svn-id: http://svn.automattic.com/wordpress/trunk@19737 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
duck_ 2012-01-23 19:03:56 +00:00
parent 15cd5752b2
commit 03fa135546
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