Make WordPress Core


Ignore:
Timestamp:
04/23/2010 04:18:33 PM (16 years ago)
Author:
ryan
Message:

Move ms_site_check() to after init and allow super admins to view blocked sites. see #13094

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/ms-load.php

    r14070 r14198  
    3838function ms_site_check() {
    3939    global $wpdb, $current_blog;
     40
     41    // Allow short-circuiting
     42    $check = apply_filters('ms_site_check', null);
     43    if ( null !== $check )
     44        return;
     45
     46    // Allow super admins to see blocked sites
     47    if ( is_super_admin() )
     48        return true;
    4049
    4150    if ( '1' == $current_blog->deleted ) {
Note: See TracChangeset for help on using the changeset viewer.