mirror of
git://develop.git.wordpress.org/
synced 2025-01-17 21:08:44 +01:00
9cf5b91e9c
Since support for PDF previews were added in [38949], it's possible that the generated image file could overwrite an existing image file with the same name. This uses wp_unique_filename() to avoid this issue and adds a '-pdf' identifier on the end of filenames. Props gitlost, desrosj, mikeschroder, joemcgill. Merges [40130] and [40131] to the 4.7 branch. Fixes #39875. See #31050. git-svn-id: https://develop.svn.wordpress.org/branches/4.7@40133 602fd350-edb4-49c9-b593-d223f7449a82