Menu Adam R Brown

WP hooks navigation: Home/browseActions indexFilters index

Source View: ms_site_check

To save our bandwidth, we show only a snippet of code around each occurence of the hook. View complete file in SVN (without highlighting).

Understanding Source Code

The best way to understand what a hook does is to look at where it occurs in the source code.

Remember, this hook may occur in more than one file. Moreover, the hook's context may change from version to version.

Source View

Line Code
66  * use the wp-content/blog-deleted.php, blog-inactive.php and
67  * blog-suspended.php drop-ins.
68  *
69  * @return bool|string Returns true on success, or drop-in file to include.
70  */
71 function ms_site_check() {
72      global $wpdb, $current_blog;
73
74      // Allow short-circuiting
75      $check = apply_filters('ms_site_check', null);
76      if ( null !== $check )
77           return true;
78
79      // Allow super admins to see blocked sites
80      if ( is_super_admin() )
81           return true;
82
83      if ( '1' == $current_blog->deleted ) {
84           if ( file_exists( WP_CONTENT_DIR . '/blog-deleted.php' ) )