wp-cli / config-command

Generates and reads the wp-config.php file.
MIT License
38 stars 36 forks source link

Prevent `WP_DEBUG` already defined when provided via `--extra-php` #144

Closed borkweb closed 2 years ago

borkweb commented 2 years ago

This fixes #140 by moving the WP_DEBUG define after the output from {extra_php} and wrapping it in a conditional. This avoids the Notice: Constant WP_DEBUG already defined that gets thrown when define( 'WP_DEBUG', ... ); is provided via --extra-php.