[wp-trac] [WordPress Trac] #49063: Media Upload: -1 appended to brand new filename
WordPress Trac
noreply at wordpress.org
Sun Dec 22 07:20:17 UTC 2019
#49063: Media Upload: -1 appended to brand new filename
--------------------------+-----------------------------
Reporter: eri32s98 | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: General | Version: 5.3.2
Severity: normal | Keywords:
Focuses: |
--------------------------+-----------------------------
There appears to be an edge case where when a new filename ends with a
pattern like {{{-NUMBERxNUMBER}}} (e.g. {{{-9x9}}}), a {{{-1}}} will get
appended to the filename as it was a duplicate.
To reproduce:
* name a file something like {{{unique-filename-3x3}}}
* upload it to the Library
Tested on a fresh install:
[[Image(librarary-filename--1.png,100%)]]
--
Ticket URL: <https://core.trac.wordpress.org/ticket/49063>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list