Upload: fix wp_unique_filename() to prevent name collisions with existing or future image sub-size file names, and add unit tests.

Props Viper007Bond, pbiron, azaozz.
Fixes #42437.

git-svn-id: https://develop.svn.wordpress.org/trunk@46822 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Andrew Ozz
2019-12-06 22:26:19 +00:00
parent bcfccc7344
commit 5464dcb2c5
3 changed files with 97 additions and 22 deletions
Binary file not shown.

After

Width:  |  Height:  |  Size: 320 B