As far as I can tell, the problem seems to be this line:
|
$value = trim( $value, '"\'' ); // Normalize quoted value. |
My wp-config.php before:
define( 'WP_DEBUG_LOG', __DIR__ . '/../logs/wp-debug.log' );
After restore (note the missing end quote of the file path):
define( 'WP_DEBUG_LOG', __DIR__ . '/../logs/wp-debug.log );