[wp-trac] [WordPress Trac] #16687: %postname% permalinks should not trigger verbose rewrite rules
WordPress Trac
wp-trac at lists.automattic.com
Thu Aug 11 23:16:52 UTC 2011
#16687: %postname% permalinks should not trigger verbose rewrite rules
----------------------------+------------------
Reporter: nacin | Owner:
Type: task (blessed) | Status: new
Priority: normal | Milestone: 3.3
Component: Rewrite Rules | Version:
Severity: normal | Resolution:
Keywords: |
----------------------------+------------------
Comment (by Otto42):
A lot of the parse_request function is reproduced in url_to_postid. That's
a refactor for another time, I think.
The line of code you're calling tricky is, indeed, tricky. It's basically
looking at a string like this:
{{{
index.php?pagename=$matches[1]&page=$matches[2]
}}}
And trying to extract the "$matches[1]" from that string in a way that it
can then figure out how to get the value in $matches[1]. Simplification
would be gladly accepted, I banged my head for a while on that one.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/16687#comment:46>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list