Ticket #6840 (reopened defect)

Opened 2 months ago

Last modified 2 months ago

Stale enclosures are not removed if post is edited.

Reported by: my_user_name_was_not_valid Assigned to: anonymous
Priority: normal Milestone: 2.5.2
Component: General Version: 2.5
Severity: normal Keywords: enclosures has-patch
Cc:

Description

The only way to remove enclosures is to delete them from the postmeta table by hand. If you change a url on a enclosure the rss/atom feeds would now show both new and old enclosure urls even though there is only one enclosure. I am attaching a patch that adds a foreach loop to the do_enclose function in wp-includes/functions.php that deletes enclosures from the metapost table that are no longer in the post.

Attachments

fix_stale_enclosures.patch (0.7 kB) - added by my_user_name_was_not_valid on 04/26/08 20:26:08.

Change History

04/25/08 16:02:51 changed by my_user_name_was_not_valid

  • version set to 2.5.

04/25/08 16:07:48 changed by my_user_name_was_not_valid

  • keywords set to enclosures.

04/26/08 20:01:14 changed by my_user_name_was_not_valid

  • keywords changed from enclosures to enclosures has-patch.
  • status changed from new to closed.
  • resolution set to fixed.

04/26/08 20:06:58 changed by my_user_name_was_not_valid

  • status changed from closed to reopened.
  • resolution deleted.

04/26/08 20:26:08 changed by my_user_name_was_not_valid

  • attachment fix_stale_enclosures.patch added.