| @@ -112,9 +112,9 @@ | ||
| 112 | 112 | public function object_cache_file_content( $backend ) { |
| 113 | 113 | $string = '<?php ' . "\n"; |
| 114 | 114 | $string .= "defined( 'ABSPATH' ) || exit;" . PHP_EOL; |
| 115 | 115 | $string .= "define( 'POWERED_OBJECT_CACHE', true );" . PHP_EOL; |
| 116 | - $string .= "if ( ! defined( 'WP_CACHE_KEY_SALT' ) && defined( 'DB_NAME') ) {" . PHP_EOL; | |
| 116 | + $string .= "if ( ! defined( 'WP_CACHE_KEY_SALT' ) ) {" . PHP_EOL; | |
| 117 | 117 | $string .= "\t" . "define( 'WP_CACHE_KEY_SALT', DB_NAME );" . PHP_EOL; |
| 118 | 118 | $string .= '}' . PHP_EOL; |
| 119 | 119 | |
| 120 | 120 | $object_caches = get_object_cache_dropins(); |
| @@ -124,9 +124,9 @@ | ||
| 124 | 124 | $string .= '} elseif ( @file_exists( \'' . $object_caches[ $backend ] . '\' ) ) {' . PHP_EOL; |
| 125 | 125 | $string .= "\t" . 'include( \'' . $object_caches[ $backend ] . '\' );' . PHP_EOL; |
| 126 | 126 | $string .= '} else {' . PHP_EOL; |
| 127 | 127 | $string .= "\t" . 'define( \'POWERED_OBJECT_CACHE_HAS_PROBLEM\', true );' . PHP_EOL; |
| 128 | - $string .= '}' . PHP_EOL; | |
| 128 | + $string .= '}'; | |
| 129 | 129 | |
| 130 | 130 | /** |
| 131 | 131 | * Filters object-cache.php file contents. |
| 132 | 132 | * |