[wp-trac] [WordPress Trac] #40174: Found a bug in uploading image

WordPress Trac noreply at wordpress.org
Fri Mar 1 19:55:55 UTC 2019


#40174: Found a bug in uploading image
-------------------------------+------------------------------
 Reporter:  sanjaypopli3749    |       Owner:  (none)
     Type:  defect (bug)       |      Status:  new
 Priority:  normal             |   Milestone:  Awaiting Review
Component:  Media              |     Version:  4.6.1
 Severity:  minor              |  Resolution:
 Keywords:  reporter-feedback  |     Focuses:
-------------------------------+------------------------------
Changes (by skorasaurus):

 * severity:  normal => minor


Comment:

 Honestly, I was expecting to suggest closing this, but I was able to
 reproduce this, only inthe following circumstances:

 This is on WordPress 5.1.

 1. upload media (I did this through wp media import filename.jpg)
 2. Delete the original photo from the file system (within uploads/) (if
 your photo is named filename.jpg; only delete filename.jpg; do not delete
 the resized images).
 3. upload media different media with same filename as step 1 (wp media
 import filename.jpg)
 4. Go to the media manager (sorry if this is the wrong term) (the url is
 wp-admin/upload.php); the original photo is still listed there.
 5. Click on the original photo's thumbnail to open 'attachment details'
 modal.
 The original photo's thumbnail and the larger image are still present.
 6. Click "edit photo" at the bottom of the modal; the newly renamed image
 will then appear even though the url is wp-
 admin/upload.php?item=20&mode=edit (swap out 20 with the original photo's
 attachment ID).

 If you delete the original photo through "Delete permanently" in the
 "attachment details" modal as is the recommended practice, the original
 photo does not appear in the media manager.

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/40174#comment:4>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list