[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
Tue Oct 20 04:04:28 UTC 2015
#21453: Appending hyphen before numbers when creating a create unique filename in
wp_unique_filename()
-------------------------+-----------------------------
Reporter: husobj | Owner: wonderboymusic
Type: enhancement | Status: closed
Priority: normal | Milestone: 4.4
Component: Upload | Version: 2.5
Severity: normal | Resolution: fixed
Keywords: has-patch | Focuses:
-------------------------+-----------------------------
Changes (by wonderboymusic):
* owner: => wonderboymusic
* status: new => closed
* resolution: => fixed
Comment:
In [changeset:"35276"]:
{{{
#!CommitTicketReference repository="" revision="35276"
Formatting: when making unique filenames in `wp_unique_filename()` by
adding an incrementing number, prefix it with a dash to disambiguate from
files that end in numbers.
Updates unit tests.
Props mikejolley, tyxla.
Fixes #21453.
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/21453#comment:7>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list