Pages must be paged (/page/x/) to allow for the page_for_posts option. See #19876.
git-svn-id: https://develop.svn.wordpress.org/trunk@19810 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
9a68d977e6
commit
5371356600
|
@ -863,7 +863,7 @@ class WP_Rewrite {
|
||||||
// the extra .? at the beginning prevents clashes with other regular expressions in the rules array
|
// the extra .? at the beginning prevents clashes with other regular expressions in the rules array
|
||||||
$this->add_rewrite_tag( '%pagename%', '(.?.+?)', 'pagename=' );
|
$this->add_rewrite_tag( '%pagename%', '(.?.+?)', 'pagename=' );
|
||||||
|
|
||||||
return $this->generate_rewrite_rules( $this->get_page_permastruct(), EP_PAGES, false, true, false, false );
|
return $this->generate_rewrite_rules( $this->get_page_permastruct(), EP_PAGES, true, true, false, false );
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Reference in New Issue