Prevent removal of line breaks from wp-config.php upon save settings
-
First, thanks for this great plugin.
When Powered Cache settings are saved (specifically page cache enabled or disabled), the
wp-config.php
file is updated where you adddefine( 'WP_CACHE', true ); // Powered Cache
to the top of the file. But all line breaks are removed from the file as well.
For instance, this:
define('DB_CHARSET', 'utf8'); define('DB_COLLATE', '');
Becomes this:
define('DB_CHARSET', 'utf8'); define('DB_COLLATE', '');
It doesn’t break anything, but the file is now harder to read.
I’m using nginx, WordPress 6.4.1, Powered Cache 3.3.1, PHP 8.1, on an a localhost test environment.
Thanks.
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘Prevent removal of line breaks from wp-config.php upon save settings’ is closed to new replies.