Opened 7 years ago
Last modified 16 months ago
#40688 new defect (bug)
there is a bug in deleting a photo and replacing it by the new photo with the same name
Reported by: | Navid.abazari | Owned by: | |
---|---|---|---|
Milestone: | Awaiting Review | Priority: | normal |
Severity: | normal | Version: | 4.7.4 |
Component: | Media | Keywords: | reporter-feedback |
Focuses: | Cc: |
Description
there is a bug when you want to permanently delete some photo from library and replace some other one with the same name in library. when you do this the first photo in web page wont be changed i mean the first photo still appears on the web page so you should change the name of the new photo for uploading it and showing it instead of the older one.
Change History (6)
This ticket was mentioned in Slack in #core-media by antpb. View the logs.
23 months ago
#4
@
23 months ago
Hi @navidabazari amd I correct in these reproduction steps?
1) upload image name deletethis.jpg.
2) Insert deletethis.jpg into a post.
3) Delete it.
4) Upload a different image with the same name.
5) Expect the post's image to have changed.
If you could provide some feedback here, we can investigate further. It may be a bit out of the scope of Core WordPress to replace an image and also all references to the images but there are some great plugins that can accomplish this. For instance, https://wordpress.org/plugins/enable-media-replace/
Hi @Navid.abazari,
Thanks for the ticket, and welcome to Trac!
Are you able to reproduce this issue on a fresh install of WordPress with all plugins disabled? If so, can you include the steps you are taking to produce reproduce this in detail so others can see the bug in action?
Wondering if this is potentially related to #44127, #42437, or #24518.