OSDN Git Service

never load advanced-cache.php. see #164
authorscribu <mail@scribu.net>
Sun, 30 Dec 2012 10:41:25 +0000 (12:41 +0200)
committerscribu <mail@scribu.net>
Sun, 30 Dec 2012 10:42:22 +0000 (12:42 +0200)
php/class-wp-cli.php
php/wp-settings-cli.php

index 1e5e023..b6b5e2d 100644 (file)
@@ -356,7 +356,7 @@ class WP_CLI {
                        }
                }
 
-               // Pretend we're in WP_ADMIN, to side-step full-page caching plugins
+               // Pretend we're in WP_ADMIN
                define( 'WP_ADMIN', true );
                $_SERVER['PHP_SELF'] = '/wp-admin/index.php';
        }
index aa05180..aa07954 100644 (file)
@@ -40,10 +40,6 @@ timer_start();
 // Check if we're in WP_DEBUG mode.
 wp_debug_mode();
 
-// For an advanced caching plugin to use. Uses a static drop-in because you would only want one.
-if ( WP_CACHE )
-       WP_DEBUG ? include( WP_CONTENT_DIR . '/advanced-cache.php' ) : @include( WP_CONTENT_DIR . '/advanced-cache.php' );
-
 // Define WP_LANG_DIR if not set.
 wp_set_lang_dir();