[wp-trac] Re: [WordPress Trac] #9416: Allow removal of sanitize_title_with_dashes from wp_unique_filename

WordPress Trac wp-trac at lists.automattic.com
Wed Apr 1 14:07:42 GMT 2009


#9416: Allow removal of sanitize_title_with_dashes from wp_unique_filename
-------------------------+--------------------------------------------------
 Reporter:  sivel        |       Owner:           
     Type:  enhancement  |      Status:  new      
 Priority:  normal       |   Milestone:  2.8      
Component:  Upload       |     Version:  2.7.1    
 Severity:  normal       |    Keywords:  has-patch
-------------------------+--------------------------------------------------

Comment(by hakre):

 I like the Idea but I tend to create an action that has all that in by
 default so that it can be replaced in full because I ran over other Errors
 there as well, for example, UTF-8 encoding was not supported in the
 process to sanitize the filename.

 double byte chars were reduced to a single byte "a" that was absolutely
 not fitting and it looks like this all not done very properly.

 I vote for getting the whole "change the filename that was submitted to
 get the filename on disk" re-worked sothat it

 a) works properly (handles character encoding well)
 b) is extend-, replace- or reduceable

 a) can be done by checking the used functions
 b) can be done by creating an action/filter

 both fit perfectly together.

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


More information about the wp-trac mailing list