Changeset 22092 for trunk/wp-admin/includes/ms.php
- Timestamp:
- 10/01/2012 06:03:23 PM (13 years ago)
- File:
-
- 1 edited
-
trunk/wp-admin/includes/ms.php (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/includes/ms.php
r21823 r22092 56 56 57 57 $switch = false; 58 if ( $blog_id != $wpdb->blogid ) {58 if ( get_current_blog_id() != $blog_id ) { 59 59 $switch = true; 60 60 switch_to_blog( $blog_id ); 61 $blog = get_blog_details( $blog_id ); 62 } else { 63 $blog = $GLOBALS['current_blog']; 64 } 61 } 62 63 $blog = get_blog_details( $blog_id ); 65 64 66 65 do_action( 'delete_blog', $blog_id, $drop ); … … 82 81 83 82 if ( $drop ) { 84 85 83 $drop_tables = apply_filters( 'wpmu_drop_tables', $wpdb->tables( 'blog' ) ); 86 84 … … 123 121 @rmdir( $dir ); 124 122 } 123 124 clean_blog_cache( $blog ); 125 125 } 126 126
Note: See TracChangeset
for help on using the changeset viewer.