We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 107077b commit b312cc5Copy full SHA for b312cc5
includes/classes/Config.php
@@ -113,7 +113,7 @@ public function object_cache_file_content( $backend ) {
113
$string = '<?php ' . "\n";
114
$string .= "defined( 'ABSPATH' ) || exit;" . PHP_EOL;
115
$string .= "define( 'POWERED_OBJECT_CACHE', true );" . PHP_EOL;
116
- $string .= "if ( ! defined( 'WP_CACHE_KEY_SALT' ) ) {" . PHP_EOL;
+ $string .= "if ( ! defined( 'WP_CACHE_KEY_SALT' ) && defined( 'DB_NAME') ) {" . PHP_EOL;
117
$string .= "\t" . "define( 'WP_CACHE_KEY_SALT', DB_NAME );" . PHP_EOL;
118
$string .= '}' . PHP_EOL;
119
0 commit comments