[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:57:23 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):
Then function update_blog_details defined in /includes/ms-blogs.php
handles only changed on spam/ham:
{{{
...
// If spam status changed, issue actions.
if ( $details[ 'spam' ] != $current_details[ 'spam' ] ) {
if ( $details[ 'spam' ] == 1 )
do_action( "make_spam_blog", $blog_id );
else
do_action( "make_ham_blog", $blog_id );
}
...
}}}
Natural.ly, to be consistent, it should also handle archive/unarchived and
delete/undelete.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/20305#comment:2>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list