diff --git a/src/wp-includes/ms-load.php b/src/wp-includes/ms-load.php index 7f9c28b2b6..759c2699d1 100644 --- a/src/wp-includes/ms-load.php +++ b/src/wp-includes/ms-load.php @@ -68,7 +68,6 @@ function wp_get_active_network_plugins() { * @return true|string Returns true on success, or drop-in file to include. */ function ms_site_check() { - $blog = get_blog_details(); /** * Filters checking the status of the current blog. @@ -85,6 +84,8 @@ function ms_site_check() { if ( is_super_admin() ) return true; + $blog = get_blog_details(); + if ( '1' == $blog->deleted ) { if ( file_exists( WP_CONTENT_DIR . '/blog-deleted.php' ) ) return WP_CONTENT_DIR . '/blog-deleted.php';