```php // All Pantheon Environments. if (defined('PANTHEON_ENVIRONMENT')) { // Turns on WordPress debug settings in development and multidev environments, and disables in test and live. if (!in_array(PANTHEON_ENVIRONMENT, array('test', 'live'))) { // Debugging enabled. if (!defined('WP_DEBUG')) { define( 'WP_DEBUG', true ); } if (!defined('WP_DISABLE_FATAL_ERROR_HANDLER')) { define( 'WP_DISABLE_FATAL_ERROR_HANDLER', true ); // 5.2 and later } if (!defined('WP_DEBUG_DISPLAY')) { define( 'WP_DEBUG_DISPLAY', true ); // requires WP_DISABLE_FATAL_ERROR_HANDLER set to true } define( 'WP_DEBUG_LOG', __DIR__ . '/wp-content/uploads/debug.log' ); // Moves the log file to a location writable while in git mode. Only works in WP 5.1 } // WordPress debug settings in Test and Live environments. else { // Debugging disabled. ini_set( 'log_errors','Off'); ini_set( 'display_errors','Off'); ini_set( 'error_reporting', E_ALL ); define( 'WP_DEBUG', false); define( 'WP_DEBUG_LOG', false); define( 'WP_DISABLE_FATAL_ERROR_HANDLER', false ); define( 'WP_DEBUG_DISPLAY', false); } } ```