[wp-trac] Re: [WordPress Trac] #9460: Add custom_url_func to be run in template-loader.php

WordPress Trac wp-trac at lists.automattic.com
Sun Apr 5 06:00:31 GMT 2009


#9460: Add custom_url_func to be run in template-loader.php
--------------------------+-------------------------------------------------
 Reporter:  mikeschinkel  |       Owner:  mikeschinkel
     Type:  enhancement   |      Status:  new         
 Priority:  normal        |   Milestone:  Unassigned  
Component:  Permalinks    |     Version:  2.8         
 Severity:  normal        |    Keywords:  custom url  
--------------------------+-------------------------------------------------

Comment(by mikeschinkel):

 Can you please define "ugly" and "half baked" in concrete and objective
 terms?

 Point of clarity; your comments about themers needing to know PHP implied
 that I was advocating for no need to know PHP, which is not at all the
 case. Your example for an add_startpoint() is perfectly acceptable to me
 (beyond the fact that I don't know what a "startpoint" is and googling the
 term gives me no clarity.)

 Instead I was saying that the need to know and understand RegEx and all
 it's side-effect ridden intricacies is way beyond what any themer and most
 plugin authors should be expected to understand.  There's a reason few
 people really know how to work with Apache's mod_rewrite and it's because
 its a black art. WordPress's WP_Rewrite is similarly black-artish. Just
 look at [http://dd32.id.au/files/wordpress/test-rewrite.php your example]
 for an example of the nightmare that is currently required.

 I'm happy to be that "someone" but I don't want to go off and spend two
 days on something and have it dismissed offhand as being "half-baked and
 ugly." If I can get proper input I hope that I can produce a patch worthy
 solution. I have worked on a [http://code.google.com/p/simpleurlmapper/
 simple URL mapper] in the past and could use what I learned from writing
 that code for this project.

 That said, my preference is to get something workable that doesn't require
 the level of complexity that is currently in place and that doesn't
 require the development of a truly robust URL mapper. I'd love to hear the
 opinions of the committers on this, please?

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


More information about the wp-trac mailing list