[wp-trac] [WordPress Trac] #31452: Creation and Deletion of Media Not Occurring in Some Cases

WordPress Trac noreply at wordpress.org
Wed Feb 25 21:44:53 UTC 2015

#31452: Creation and Deletion of Media Not Occurring in Some Cases
 Reporter:  FA123         |      Owner:
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  Awaiting Review
Component:  Media         |    Version:  4.1.1
 Severity:  normal        |   Keywords:
  Focuses:                |
 I have noticed a couple issues with media deleted via "Delete Permanently"
 in the media library:

 1) the "Delete Permanently" does not remove the file, only the listing in
 the media library. For instance I uploaded a PDF, discovered the error and
 deleted it in the media libary. However, if you view the link below you
 will notice that the PDF is still very obviously up on the site. (I made
 sure it was not a cached copy I was seeing)


 2) Some media uploads do not create a working link. For instance I tried
 to upload an image name partner_logos_6. The upload was successful. It
 created what would be the correct URL (ie http...partner_logos_6.jpg).
 However, when one attempts to link or go to the image, it generates a 404

 Normally, I would assume this is because media with that name and URL was
 previously on the site and taken down via the broken "Delete Permanently"

 However, when I deleted a PDF and uploaded a new one with the same name,
 generating the same URL, (the PDF in issue #1) this forced the link to go
 to the initial upload of the content, ignoring the newer version, the only
 version listed as on the site by the media library.

 As a result I am at a bit of a loss to explain what is going on here. The
 workaround is pretty easy--don't delete anything so unique URLs are forced
 --but a fix for this would be most welcome.

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

More information about the wp-trac mailing list