Hi,
Just my 2 cents, as this “bug” is also triggered on my hosts (WP_DEBUG is defined in wp-config.php for some reasons that i cannot influence)
Imho it should be sufficient to check if the constant is already defined:
if(!defined(‘WP_DEBUG’)){
define(‘WP_DEBUG’, false);
}
Kind regards,
mg