WordPress.org

Make WordPress Core

Changeset 14180


Ignore:
Timestamp:
04/21/2010 08:34:32 PM (8 years ago)
Author:
ryan
Message:

Make sure is set correctly when advanced-cache.php is being used.

File:
1 edited

Legend:

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

    r14036 r14180  
    360360        }
    361361        $first_init = true;
     362    } else if ( !$_wp_using_ext_object_cache && file_exists( WP_CONTENT_DIR . '/object-cache.php' ) ) {
     363        // Sometimes advanced-cache.php can load object-cache.php before it is loaded here.
     364        // This breaks the function_exists check above and can result in $_wp_using_ext_object_cache
     365        // being set incorrectly.  Double check if an external cache exists.
     366        $_wp_using_ext_object_cache = true;
    362367    }
    363368
Note: See TracChangeset for help on using the changeset viewer.