WordPress.org

Plugin Directory

Changeset 592344


Ignore:
Timestamp:
08/30/12 11:53:38 (20 months ago)
Author:
donncha
Message:

Remove is_main_blog() calls, requires 3.0 already. Props angelxas. http://wordpress.org/support/topic/plugin-wp-super-cache-crashes-wp-341-multisite?replies=2

File:
1 edited

Legend:

Unmodified
Added
Removed
  • wp-super-cache/trunk/wp-cache.php

    r592331 r592344  
    305305    } 
    306306 
    307     if ( function_exists( "is_main_site" ) && true == is_main_site() || function_exists( 'is_main_blog' ) && true == is_main_blog() ) { 
     307    if ( function_exists( "is_main_site" ) && true == is_main_site() ) { 
    308308    $home_path = trailingslashit( get_home_path() ); 
    309309    $scrules = implode( "\n", extract_from_markers( $home_path.'.htaccess', 'WPSuperCache' ) ); 
     
    12761276        if ( false == wpsupercache_site_admin() ) 
    12771277            return false; 
    1278         if ( function_exists( "is_main_site" ) && false == is_main_site() || function_exists( 'is_main_blog' ) && false == is_main_blog() ) { 
     1278        if ( function_exists( "is_main_site" ) && false == is_main_site() ) { 
    12791279            global $current_site; 
    12801280            $protocol = ( 'on' == strtolower( $_SERVER['HTTPS' ] ) ) ? 'https://' : 'http://'; 
     
    12891289    } 
    12901290 
    1291     if ( function_exists( "is_main_site" ) && false == is_main_site() || function_exists( 'is_main_blog' ) && false == is_main_blog() ) 
     1291    if ( function_exists( "is_main_site" ) && false == is_main_site() ) 
    12921292        return true; 
    12931293    ?> 
Note: See TracChangeset for help on using the changeset viewer.