WordPress.org

Make WordPress Core

Changeset 37850


Ignore:
Timestamp:
06/22/2016 09:33:20 PM (4 years ago)
Author:
jeremyfelt
Message:

Multisite: Move call of get_blog_details() inside ms_site_check().

This allows the ms_site_check filter or is_super_admin() check to return true before get_blog_details() is used.

Props danielbachhuber.
Fixes #37118.

File:
1 edited

Legend:

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

    r37628 r37850  
    6969 */
    7070function ms_site_check() {
    71     $blog = get_blog_details();
    7271
    7372    /**
     
    8584    if ( is_super_admin() )
    8685        return true;
     86
     87    $blog = get_blog_details();
    8788
    8889    if ( '1' == $blog->deleted ) {
Note: See TracChangeset for help on using the changeset viewer.