[wp-trac] [WordPress Trac] #25584: Add an action hook at the end of wpmu_delete_blog

WordPress Trac noreply at wordpress.org
Tue Mar 4 18:40:07 UTC 2014


#25584: Add an action hook at the end of wpmu_delete_blog
------------------------------------------+-----------------------------
 Reporter:  pauldewouters                 |       Owner:
     Type:  enhancement                   |      Status:  new
 Priority:  normal                        |   Milestone:  Future Release
Component:  Networks and Sites            |     Version:
 Severity:  normal                        |  Resolution:
 Keywords:  has-patch commit 2nd-opinion  |     Focuses:  multisite
------------------------------------------+-----------------------------
Changes (by nacin):

 * keywords:  has-patch commit => has-patch commit 2nd-opinion
 * milestone:  3.9 => Future Release


Comment:

 This filter is inside a if ( $drop ) conditional which means it would only
 be fired when data is actually deleted.

 I'll be honest, I don't see much of a purpose for this hook. The existing
 delete_blog action is enough, even though it is on pre-transaction. If
 you're trying to query only active blogs, simply exclude the blog for
 which the hook has fired. While we would generally provide and benefit
 from a post-transaction hook, I'd hesitate to bother adding one until we
 re-do this function at some point down the line (with better terminology
 and less hackery).

--
Ticket URL: <https://core.trac.wordpress.org/ticket/25584#comment:13>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list