mirror of
git://develop.git.wordpress.org/
synced 2025-01-18 05:18:42 +01:00
Make pagename regex ungreedy. Fixes /pagename/2 links
git-svn-id: https://develop.svn.wordpress.org/trunk@6964 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
7447b263c5
commit
c29260a09f
@ -218,7 +218,7 @@ class WP_Rewrite {
|
||||
'(.+?)',
|
||||
'(.+?)',
|
||||
'([^/]+)',
|
||||
'([^/]+)',
|
||||
'([^/]+?)',
|
||||
'(.+)'
|
||||
);
|
||||
|
||||
@ -317,7 +317,7 @@ class WP_Rewrite {
|
||||
$page_structure = $this->get_page_permastruct();
|
||||
|
||||
if ( ! $this->use_verbose_page_rules ) {
|
||||
$this->add_rewrite_tag('%pagename%', "(.+)", 'pagename=');
|
||||
$this->add_rewrite_tag('%pagename%', "(.+?)", 'pagename=');
|
||||
$rewrite_rules = array_merge($rewrite_rules, $this->generate_rewrite_rules($page_structure, EP_PAGES));
|
||||
return $rewrite_rules;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user