From 3dd92c94ce5db2501cc8f865fe98190fbfd40d79 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Dominik=20Tr=C3=A4nklein?= Date: Wed, 10 Jan 2018 13:53:25 +0100 Subject: [PATCH] display correct WPCACHEHOME path if `wpsc_deep_replace` does not exist --- wp-cache.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wp-cache.php b/wp-cache.php index e8a57781..d32776b3 100644 --- a/wp-cache.php +++ b/wp-cache.php @@ -281,7 +281,7 @@ function wp_cache_manager_error_checks() { if ( false == function_exists( 'wpsc_deep_replace' ) ) { $msg = __( 'Warning! You must set WP_CACHE and WPCACHEHOME in your wp-config.php for this plugin to work correctly:' ) . '
'; $msg .= "define( 'WP_CACHE', true );
"; - $msg .= "define( 'WPCACHEHOME', '" . dirname( __FILE__ ) . "' );
"; + $msg .= "define( 'WPCACHEHOME', '" . dirname( __FILE__ ) . "/' );
"; wp_die( $msg ); }