tags and the like don't generate mixed-mode // content warnings. if (isset($_SERVER['HTTP_USER_AGENT_HTTPS']) && $_SERVER['HTTP_USER_AGENT_HTTPS'] == 'ON') { $scheme = 'https'; $_SERVER['HTTPS'] = 'on'; } define('WP_HOME', $scheme . '://' . $_SERVER['HTTP_HOST']); define('WP_SITEURL', $scheme . '://' . $_SERVER['HTTP_HOST']); } // Don't show deprecations; useful under PHP 5.5 error_reporting(E_ALL ^ E_DEPRECATED); /** Define appropriate location for default tmp directory on Pantheon */ define('WP_TEMP_DIR', sys_get_temp_dir()); // FS writes aren't permitted in test or live, so we should let WordPress know to disable relevant UI if (in_array($_ENV['PANTHEON_ENVIRONMENT'], array( 'test', 'live' )) && ! defined('DISALLOW_FILE_MODS')) { define('DISALLOW_FILE_MODS', true); } /** * Set WP_ENVIRONMENT_TYPE according to the Pantheon Environment */ if (getenv('WP_ENVIRONMENT_TYPE') === false) { switch ($_ENV['PANTHEON_ENVIRONMENT']) { case 'live': putenv('WP_ENVIRONMENT_TYPE=production'); break; case 'test': putenv('WP_ENVIRONMENT_TYPE=staging'); break; default: putenv('WP_ENVIRONMENT_TYPE=development'); break; } } /** * Defaults you may override * * To override, define your constant in your wp-config.php before wp-config-pantheon.php is required. */ /** Disable wp-cron.php from running on every page load and rely on Pantheon to run cron via wp-cli */ $network = isset($_ENV["FRAMEWORK"]) && $_ENV["FRAMEWORK"] === "wordpress_network"; if ( ! defined( 'DISABLE_WP_CRON' ) && $network === false) { define( 'DISABLE_WP_CRON', true ); }