[wp-trac] [WordPress Trac] #39875: PDF previews overwrite existing images with the same name.
WordPress Trac
noreply at wordpress.org
Fri Feb 17 18:26:59 UTC 2017
#39875: PDF previews overwrite existing images with the same name.
--------------------------+------------------------------
Reporter: gitlost | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Media | Version: 4.7
Severity: normal | Resolution:
Keywords: needs-patch | Focuses:
--------------------------+------------------------------
Comment (by desrosj):
Also discovered another scenario in my testing. PDF files that were
uploaded before 4.7 do not have image previews until an image regeneration
script is run, or `wp media regenerate` in WP-CLI.
When one of those scripts are run, the JPG file with the same name is also
overwritten.
Steps to reproduce:
1. Upload PDF file.
2. Delete all JPG image previews for that PDF from uploads.
3. Upload a JPG file with the same name.
4. Run `wp media regenerate --yes` in WP-CLI.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/39875#comment:3>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list