[wp-trac] [WordPress Trac] #19121: Add filter to wp_unique_filename

WordPress Trac wp-trac at lists.automattic.com
Sun Feb 19 04:09:02 UTC 2012


#19121: Add filter to wp_unique_filename
-------------------------+------------------------------
 Reporter:  xazure       |       Owner:
     Type:  enhancement  |      Status:  new
 Priority:  normal       |   Milestone:  Awaiting Review
Component:  Upload       |     Version:  3.3
 Severity:  major        |  Resolution:
 Keywords:  has-patch    |
-------------------------+------------------------------
Changes (by SergeyBiryukov):

 * keywords:   => has-patch


Comment:

 `wp_unique_filename()` has `$unique_filename_callback`, but it doesn't
 seem to be possible to specify it for core media upload (see #20057 for
 context), unless I'm missing something.

 We can probably add a filter there in the same way we did for
 `wp_unique_post_slug()` in #14111.

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


More information about the wp-trac mailing list