[wp-trac] [WordPress Trac] #16692: Add hook to allow plugins to implement custom $wp->parse_request() logic to support arbitrary custom URLs
WordPress Trac
wp-trac at lists.automattic.com
Tue Mar 8 06:52:39 UTC 2011
#16692: Add hook to allow plugins to implement custom $wp->parse_request() logic to
support arbitrary custom URLs
------------------------------------+------------------------------
Reporter: mikeschinkel | Owner:
Type: enhancement | Status: reviewing
Priority: normal | Milestone: Awaiting Review
Component: Rewrite Rules | Version: 3.1
Severity: normal | Resolution:
Keywords: has-patch dev-feedback |
------------------------------------+------------------------------
Comment (by scribu):
I've thought about it and it's just not the same thing.
I think the reason all these approaches feel clunky is because the part
you're interested in, the rewrite logic, should be in WP_Rewrite in the
first place.
So, a better approach would be to create a match_rule() method in
WP_Rewrite and then hook that to a 'match_rule' action called from
parse_request().
--
Ticket URL: <http://core.trac.wordpress.org/ticket/16692#comment:13>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list