[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
Sun Feb 27 22:02:50 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  |
------------------------------------+------------------------------
Changes (by mikeschinkel):

 * cc: mikeschinkel@… (added)


Comment:

 Replying to [comment:6 scribu]:
 > Yes, and you can also replace {{{&$this}}} with just {{{$this}}}.

 Thanks.  New patch uploaded.

 > I was going to ask why you can't just use the 'request' filter, but then
 I realized you want to prevent the processing done in WP_Rewrite
 altogether.

 Exactly.  Actually, I do want to ''optionally'' run the processing done in
 `WP_Rewrite` but only after I get a chance to decide if I want to handle
 it instead.

 My patch is probably not be the cleanest way to enable allowing someone to
 insert processing before `$wp->parse_request()` with the option of clling
 `$wp->parse_request()` if no custom URL matches, but I implemented the way
 I did because it was the smallest change I could envision making that
 could work.  I figured that if the idea gets traction then others would be
 able to suggest a more preferable approach.

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/16692#comment:7>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list