[wp-trac] [WordPress Trac] #6840: Stale enclosures are not removed
if post is edited.
WordPress Trac
wp-trac at lists.automattic.com
Fri Apr 25 15:27:06 GMT 2008
#6840: Stale enclosures are not removed if post is edited.
----------------------------------------+-----------------------------------
Reporter: my_user_name_was_not_valid | Owner: anonymous
Type: defect | Status: new
Priority: normal | Milestone: 2.5.1
Component: General | Version:
Severity: normal | Keywords:
----------------------------------------+-----------------------------------
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.
--
Ticket URL: <http://trac.wordpress.org/ticket/6840>
WordPress Trac <http://trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list