[wp-trac] [WordPress Trac] #14292: loop in tags url to same url

WordPress Trac wp-trac at lists.automattic.com
Sun Jul 18 23:39:47 UTC 2010

#14292: loop in tags url to same url
 Reporter:  gilrabbi2          |        Owner:        
     Type:  defect (bug)       |       Status:  closed
 Priority:  normal             |    Milestone:  3.0.1 
Component:  General            |      Version:  3.0   
 Severity:  critical           |   Resolution:  fixed 
 Keywords:  reporter-feedback  |  

Comment(by hakre):

 Patch introduces url_normalize() which creates something that could be
 named a "wordpress-way" normalized url. First of all it normalizes an URL
 so that only those chars are encoded that need to be encoded and all the
 other stuff mentioned in section 3.2.x of RFC 2613 is compacted into "the
 one comparable" representation.

 This is following the HTTP standard. The "wordpress-way" part of it is to
 use lowercase triplets. Both PHP and the RFC suggest uppercase as the
 default. I like lowercase as well, and it's compatible.

 Defect: Arguments inside the queryinfo part of the URL are not
 alphabeitcally sorted. That's something which could be aditionally done.

 This patch comes with another function called url_compare() as well which
 I had used prior to normalize in the URL in the entry point and left it
 just as a usage exmaple.

Ticket URL: <http://core.trac.wordpress.org/ticket/14292#comment:21>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software

More information about the wp-trac mailing list