Make WordPress Core

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: navidabazari's profile 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)

#1 @desrosj
6 years ago

  • Component changed from Gallery to Media
  • Keywords reporter-feedback added

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.

This ticket was mentioned in Slack in #core-media by antpb. View the logs.


23 months ago

#4 @antpb
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/

Last edited 23 months ago by antpb (previous) (diff)

This ticket was mentioned in Slack in #core-media by joedolson. View the logs.


22 months ago

#6 @Presskopp
16 months ago

#58330 was marked as a duplicate.

Note: See TracTickets for help on using tickets.