[wp-trac] [WordPress Trac] #29169: Scan for lost attachments: $lost is lost

WordPress Trac noreply at wordpress.org
Sun Aug 10 12:33:57 UTC 2014


#29169: Scan for lost attachments: $lost is lost
--------------------------+-----------------------------
 Reporter:  afercia       |      Owner:
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  Awaiting Review
Component:  Media         |    Version:  3.9.1
 Severity:  normal        |   Keywords:
  Focuses:                |
--------------------------+-----------------------------
 in Media Library > Unattached > Scan for lost attachments
 press the button, nothing happens.
 There have been so many changes to upload.php and class-wp-media-list-
 table.php and now, even if the $lost query finds something, there's a
 redirect and $lost is null after the redirect.
 Moreover, looks like there's nothing left in the code to actually display
 lost attachments.
 I'm not sure there's still a real use case for this scan, I had to
 manually edit the DB to have a media file attached to a no longer existing
 posts since wp_delete_post() "Points all attachments to the deleted post
 up one level".
 See #10911 for some background.

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


More information about the wp-trac mailing list