Skip to content

Commit f37e91e

Browse files
committed
Update docs++
1 parent e838879 commit f37e91e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/classes_Config.php.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ <h1 class="page-title">Source: classes/Config.php</h1>
141141
$string = '&lt;?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' ) &amp;&amp; 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.

0 commit comments

Comments
 (0)