[wp-trac] [WordPress Trac] #21453: Appending hyphen before numbers when creating a create unique filename in wp_unique_filename()

WordPress Trac noreply at wordpress.org
Wed Oct 14 13:41:51 UTC 2015


#21453: Appending hyphen before numbers when creating a create unique filename in
wp_unique_filename()
-------------------------+------------------
 Reporter:  husobj       |       Owner:
     Type:  enhancement  |      Status:  new
 Priority:  normal       |   Milestone:  4.4
Component:  Upload       |     Version:  2.5
 Severity:  normal       |  Resolution:
 Keywords:  has-patch    |     Focuses:
-------------------------+------------------
Changes (by tyxla):

 * keywords:  has-patch needs-unit-tests => has-patch


Comment:

 I think that in terms of unit tests, this only requires a modification to
 `Tests_Functions::test_wp_unique_filename()` in order to support the new
 unique naming scheme.

 @wonderboymusic do you think there are additional cases that should be
 covered?

--
Ticket URL: <https://core.trac.wordpress.org/ticket/21453#comment:6>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list