Skip to content

Commit 57d3ce4

Browse files
author
Ryan Marks
committed
Allow DISABLE_WP_CRON to be overridden
1 parent fa54bd8 commit 57d3ce4

File tree

1 file changed

+11
-2
lines changed

1 file changed

+11
-2
lines changed

web/wp-config-pantheon.php

+11-2
Original file line numberDiff line numberDiff line change
@@ -77,8 +77,6 @@
7777
error_reporting(E_ALL ^ E_DEPRECATED);
7878
/** Define appropriate location for default tmp directory on Pantheon */
7979
define('WP_TEMP_DIR', $_SERVER['HOME'] .'/tmp');
80-
/** Disable wp-cron.php from running on every page load and rely on Pantheon to run cron via wp-cli */
81-
define('DISABLE_WP_CRON', true);
8280

8381
// FS writes aren't permitted in test or live, so we should let WordPress know to
8482
// disable relevant UI.
@@ -114,3 +112,14 @@
114112
if ( ! defined('FORCE_SSL_ADMIN') ) {
115113
define( 'FORCE_SSL_ADMIN', true );
116114
}
115+
116+
/**
117+
* Defaults you may override
118+
*
119+
* To override, define your constant in your wp-config.php before wp-config-pantheon.php is required.
120+
*/
121+
122+
/** Disable wp-cron.php from running on every page load and rely on Pantheon to run cron via wp-cli */
123+
if ( ! defined( 'DISABLE_WP_CRON' ) ) {
124+
define( 'DISABLE_WP_CRON', true );
125+
}

0 commit comments

Comments
 (0)