[wp-trac] [WordPress Trac] #18276: Implement URL Routing System to "Front-End" WordPress' existing Rewrite System

WordPress Trac wp-trac at lists.automattic.com
Fri Jul 29 09:38:03 UTC 2011


#18276: Implement URL Routing System to "Front-End" WordPress' existing Rewrite
System
------------------------------------+------------------------------
 Reporter:  mikeschinkel            |       Owner:
     Type:  enhancement             |      Status:  new
 Priority:  normal                  |   Milestone:  Awaiting Review
Component:  Permalinks              |     Version:  3.2.1
 Severity:  normal                  |  Resolution:
 Keywords:  dev-feedback has-patch  |
------------------------------------+------------------------------

Comment (by scribu):

 Sure:

 * You use the $wp_urls global, when you could use two static properties on
 the WP_Urls class.
 * The switch statement doesn't belong in register_query_var(). Put it in a
 wrapper function.

 Suggestion:

 Separate attributes - '@validate' etc. - from actual query vars.

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


More information about the wp-trac mailing list