[wp-trac] [WordPress Trac] #20305: update_blog_status should also handle delete/undelete cases
WordPress Trac
wp-trac at lists.automattic.com
Tue Mar 27 00:01:17 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):
Hence the corresponding code should go into function update_blog_details
defined in /includes/ms-blogs.php:
{{{
...
// If archived status changed, issue actions.
if ( $details[ 'archived' ] != $current_details[ 'archived' ] ) {
if ( $details[ 'spam' ] == 1 )
do_action( "archive_blog", $blog_id );
else
do_action( "unarchive_blog", $blog_id );
}
// If deleted status changed, issue actions.
if ( $details[ 'deleted' ] != $current_details[ 'deleted' ] ) {
if ( $details[ 'deleted' ] == 1 )
do_action( "make_delete_blog", $blog_id );
else
do_action( "make_undelete_blog", $blog_id );
}
...
}}}
--
Ticket URL: <http://core.trac.wordpress.org/ticket/20305#comment:3>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list