[wp-trac] [WordPress Trac] #43246: Thumbnail creation removing other original attachment files

WordPress Trac noreply at wordpress.org
Wed Feb 7 09:43:40 UTC 2018


#43246: Thumbnail creation removing other original attachment files
--------------------------+-----------------------------
 Reporter:  remimodulo    |      Owner:
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  Awaiting Review
Component:  Media         |    Version:  4.9.4
 Severity:  normal        |   Keywords:
  Focuses:                |
--------------------------+-----------------------------
 How to reproduce bug :
 * Get any thumbnail size from your WordPress. For exemple : "150x150".
 * Upload a file with this size written in the file name : "test-
 150x150.png".
 * Upload an other file with the same name without the size : "test.png"
 (large enough that WordPress will try to create a thumbnail with the size
 you got early).

 Result : the original file of the first media uploaded will be replaced by
 the thumbnail of the second (you might have to reload the page to see it
 in the media list).

 First file to upload (wp-media-bug-150x150.png) :
 [[Image(https://www.remitoffoli.com/p/wordpress/wp-media-bug-
 150x150.png)]]

 Second file to upload (wp-media-bug.png) :
 [[Image(https://www.remitoffoli.com/p/wordpress/wp-media-bug.png)]]

 What it does... :
 [[Image(https://www.remitoffoli.com/p/wordpress/wp-media-bug.gif)]]

--
Ticket URL: <https://core.trac.wordpress.org/ticket/43246>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list