[wp-trac] [WordPress Trac] #20305: update_blog_status should also handle delete/undelete cases

WordPress Trac wp-trac at lists.automattic.com
Mon Mar 26 23:42:46 UTC 2012


#20305: update_blog_status should also handle delete/undelete cases
--------------------------+------------------------------
 Reporter:  Kyrylo        |       Owner:
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  Awaiting Review
Component:  Multisite     |     Version:  3.2.1
 Severity:  normal        |  Resolution:
 Keywords:  has-patch     |
--------------------------+------------------------------

Comment (by Kyrylo):

 Just discovered that there is already an action 'delete_blog', which is
 triggered in function wpmu_delete_blog defined in /wp-
 admin/includes/ms.php

 Thus we need to come up with better and more unique names:

 {{{
 ...
         elseif ( 'deleted' == $pref )
                 ( $value == 1 ) ? do_action( 'make_delete_blog', $blog_id
 ) : do_action( 'make_undelete_blog', $blog_id );
 ...
 }}}

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/20305#comment:1>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list