Make WordPress Core

Ticket #22661: 22661.patch

File 22661.patch, 598 bytes (added by SergeyBiryukov, 12 years ago)
  • src/wp-includes/load.php

     
    403403        if ( ! function_exists( 'wp_cache_init' ) ) {
    404404                if ( file_exists( WP_CONTENT_DIR . '/object-cache.php' ) ) {
    405405                        require_once ( WP_CONTENT_DIR . '/object-cache.php' );
    406                         if ( function_exists( 'wp_cache_init' ) )
     406                        if ( function_exists( 'wp_cache_init' ) && false !== wp_using_ext_object_cache() ) {
    407407                                wp_using_ext_object_cache( true );
     408                        }
    408409                }
    409410
    410411                $first_init = true;