warnings cleanup on archived/suspended sites, fixes #12396

git-svn-id: http://svn.automattic.com/wordpress/trunk@13461 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
wpmuguru
2010-02-27 17:48:37 +00:00
parent 21f661bdf0
commit 1c87155b6d
2 changed files with 5 additions and 1 deletions

View File

@@ -48,6 +48,7 @@ add_filter( 'wp_handle_upload_prefilter', 'check_upload_size' );
function wpmu_delete_blog($blog_id, $drop = false) {
global $wpdb;
$switched = false;
if ( $blog_id != $wpdb->blogid ) {
$switch = true;
switch_to_blog($blog_id);