[wp-trac] [WordPress Trac] #40688: there is a bug in deleting a photo and replacing it by the new photo with the same name

WordPress Trac noreply at wordpress.org
Wed Nov 16 16:48:59 UTC 2022


#40688: there is a bug in deleting a photo and replacing it by the new photo with
the same name
-------------------------------+------------------------------
 Reporter:  Navid.abazari      |       Owner:  (none)
     Type:  defect (bug)       |      Status:  new
 Priority:  normal             |   Milestone:  Awaiting Review
Component:  Media              |     Version:  4.7.4
 Severity:  normal             |  Resolution:
 Keywords:  reporter-feedback  |     Focuses:
-------------------------------+------------------------------

Comment (by antpb):

 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's
 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/

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


More information about the wp-trac mailing list