Definition:
function ms_site_check() {}
Checks status of current blog.
Checks if the blog is deleted, inactive, archived, or spammed.
Return values
returns:Returns true on success, or drop-in file to include.
Defined filters
- ms_site_check
apply_filters('ms_site_check', null)
Source code
function ms_site_check() { global $wpdb, $current_blog; // Allow short-circuiting $check = apply_filters('ms_site_check', null); if ( null !== $check ) return true; // Allow super admins to see blocked sites if ( is_super_admin() ) return true; if ( '1' == $current_blog->deleted ) { if ( file_exists( WP_CONTENT_DIR . '/blog-deleted.php' ) ) return WP_CONTENT_DIR . '/blog-deleted.php'; else wp_die( __( 'This user has elected to delete their account and the content is no longer available.' ), '', array( 'response' => 410 ) ); } if ( '2' == $current_blog->deleted ) { if ( file_exists( WP_CONTENT_DIR . '/blog-inactive.php' ) ) return WP_CONTENT_DIR . '/blog-inactive.php'; else wp_die( sprintf( __( 'This site has not been activated yet. If you are having problems activating your site, please contact <a href="mailto:%1$s">%1$s</a>.' ), str_replace( '@', ' AT ', get_site_option( 'admin_email', "support@{$current_site->domain}" ) ) ) ); }
2409
No comments yet... Be the first to leave a reply!