[wp-trac] Re: [WordPress Trac] #1972: Dots (.) in post slug are removed

WordPress Trac wp-trac at lists.automattic.com
Sun Mar 12 20:55:31 GMT 2006

#1972: Dots (.) in post slug are removed
       Id:  1972       |      Status:  new                     
Component:  General    |    Modified:  Sun Mar 12 20:55:31 2006
 Severity:  trivial    |   Milestone:  2.1                     
 Priority:  low        |     Version:  2.0.1                   
    Owner:  anonymous  |    Reporter:  dto                     
Comment (by markjaquith):

 Changes to the sanitizer that make it LESS restrictive shouldn't break

 If I have a post slug of 'this-slug' ... after this change, it would still
 be 'this-slug'

 For posts with existing slugs, on update, the existing post slug is passed
 through the sanitizer... not the post title.

 So if on January 1st, 2006, I posted an entry with the title "Stop. It's
 Hammer time." ... the post slug would be 'stop-its-hammer-time' and after
 the update it would stay the same, even though there are periods in the
 title.  Periods would only go through for new posts.

 At least, that's how I'm reading the code.  changes that make the
 sanitizer MORE restrictive would obviously be bad and WOULD change
 existing slugs.

Ticket URL: <http://trac.wordpress.org/ticket/1972>
WordPress Trac <http://wordpress.org/>
WordPress blogging software

More information about the wp-trac mailing list