<?xml version="1.0" encoding="UTF-8"?><!-- generator="bbPress" -->

<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
>

<channel>
<title>WordPress &#8250; Support Topic: Perform action 'delete_attachment' before DB-update</title>
<link>http://wordpress.org/support/</link>
<description>WordPress &#8250; Support Topic: Perform action 'delete_attachment' before DB-update</description>
<language>en</language>
<pubDate>Thu, 26 Nov 2009 08:26:49 +0000</pubDate>

<item>
<title>stephanreiter on "Perform action 'delete_attachment' before DB-update"</title>
<link>http://wordpress.org/support/topic/226773#post-967743</link>
<pubDate>Tue, 27 Jan 2009 11:30:07 +0000</pubDate>
<dc:creator>stephanreiter</dc:creator>
<guid isPermaLink="false">967743@http://wordpress.org/support/</guid>
<description>&#60;p&#62;Awesome, thank you!
&#60;/p&#62;</description>
</item>
<item>
<title>filosofo on "Perform action 'delete_attachment' before DB-update"</title>
<link>http://wordpress.org/support/topic/226773#post-962726</link>
<pubDate>Wed, 21 Jan 2009 22:53:24 +0000</pubDate>
<dc:creator>filosofo</dc:creator>
<guid isPermaLink="false">962726@http://wordpress.org/support/</guid>
<description>&#60;p&#62;And it has now &#60;a href=&#34;http://trac.wordpress.org/changeset/10400&#34;&#62;been committed&#60;/a&#62;, so it will appear in WordPress 2.8.
&#60;/p&#62;</description>
</item>
<item>
<title>filosofo on "Perform action 'delete_attachment' before DB-update"</title>
<link>http://wordpress.org/support/topic/226773#post-962517</link>
<pubDate>Wed, 21 Jan 2009 19:28:19 +0000</pubDate>
<dc:creator>filosofo</dc:creator>
<guid isPermaLink="false">962517@http://wordpress.org/support/</guid>
<description>&#60;p&#62;I created a ticket &#60;a href=&#34;http://trac.wordpress.org/ticket/8909&#34;&#62;here&#60;/a&#62;.
&#60;/p&#62;</description>
</item>
<item>
<title>stephanreiter on "Perform action 'delete_attachment' before DB-update"</title>
<link>http://wordpress.org/support/topic/226773#post-929684</link>
<pubDate>Thu, 18 Dec 2008 11:49:30 +0000</pubDate>
<dc:creator>stephanreiter</dc:creator>
<guid isPermaLink="false">929684@http://wordpress.org/support/</guid>
<description>&#60;p&#62;Currently, the action 'delete_attachment' is performed &#60;strong&#62;after&#60;/strong&#62; all data associated with the attachment in question has been removed from the database. It is therefore not possible to query custom attachment metadata in the action handler, which I would require for additional cleanup steps in a plugin.&#60;/p&#62;
&#60;p&#62;Is there any reason why it is not possible to perform 'delete_attachment' &#60;strong&#62;before&#60;/strong&#62; the database is updated? Because, honestly, the current setup doesn't make a lot of sense to me, i.e. 'delete_attachment' handlers receive the post-id of the deleted attachment, which is, however, no longer valid and therefore useless.&#60;/p&#62;
&#60;p&#62;Thanks,&#60;br /&#62;
Stephan
&#60;/p&#62;</description>
</item>

</channel>
</rss>
