[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
Fri Oct 25 10:13:53 UTC 2013
#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: Awaiting Review
Component: Filesystem | Version: 2.5
Severity: normal | Resolution:
Keywords: needs-patch |
-------------------------+------------------------------
Comment (by mikejolley):
I've attached a patch for this. It will ensure appended numbers are
prepended with a hyphen.
Works with both the extension case logic, when extension is non existent,
and regular filenames.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/21453#comment:2>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list