Fix rewrite documentation typo and clarify with "rules array" over "this/the structure". props SergeyBiryukov. see #16687
git-svn-id: https://develop.svn.wordpress.org/trunk@18566 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
bbfd457437
commit
f960996aa4
@ -821,7 +821,7 @@ class WP_Rewrite {
|
||||
$rewrite_rules = array();
|
||||
$page_structure = $this->get_page_permastruct();
|
||||
|
||||
// the extra .? at the beginning prevents clashes with other regex's in thie structure
|
||||
// the extra .? at the beginning prevents clashes with other regular expressions in the rules array
|
||||
$this->add_rewrite_tag('%pagename%', "(.?.+?)", 'pagename=');
|
||||
$rewrite_rules = array_merge($rewrite_rules, $this->generate_rewrite_rules($page_structure, EP_PAGES));
|
||||
return $rewrite_rules;
|
||||
|
Loading…
Reference in New Issue
Block a user