File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -141,7 +141,7 @@ <h1 class="page-title">Source: classes/Config.php</h1>
141141 $string = '<?php ' . "\n";
142142 $string .= "defined( 'ABSPATH' ) || exit;" . PHP_EOL;
143143 $string .= "define( 'POWERED_OBJECT_CACHE', true );" . PHP_EOL;
144- $string .= "if ( ! defined( 'WP_CACHE_KEY_SALT' ) ) {" . PHP_EOL;
144+ $string .= "if ( ! defined( 'WP_CACHE_KEY_SALT' ) && defined( 'DB_NAME') ) {" . PHP_EOL;
145145 $string .= "\t" . "define( 'WP_CACHE_KEY_SALT', DB_NAME );" . PHP_EOL;
146146 $string .= '}' . PHP_EOL;
147147
@@ -153,7 +153,7 @@ <h1 class="page-title">Source: classes/Config.php</h1>
153153 $string .= "\t" . 'include( \'' . $object_caches[ $backend ] . '\' );' . PHP_EOL;
154154 $string .= '} else {' . PHP_EOL;
155155 $string .= "\t" . 'define( \'POWERED_OBJECT_CACHE_HAS_PROBLEM\', true );' . PHP_EOL;
156- $string .= '}';
156+ $string .= '}' . PHP_EOL ;
157157
158158 /**
159159 * Filters object-cache.php file contents.
You can’t perform that action at this time.
0 commit comments