File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -1444,7 +1444,7 @@ public function install_wp( $subdir = '' ): void {
14441444 $ subdir = $ this ->replace_variables ( $ subdir );
14451445
14461446 // Disable WP Cron by default to avoid bogus HTTP requests in CLI context.
1447- $ config_extra_php = "if ( ! defined( 'DISABLE_WP_CRON' ) ) { define( 'DISABLE_WP_CRON', true ); } \n" ;
1447+ $ config_extra_php = "if ( defined( 'DISABLE_WP_CRON' ) === false ) { define( 'DISABLE_WP_CRON', true ); } \n" ;
14481448
14491449 if ( 'sqlite ' !== self ::$ db_type ) {
14501450 $ this ->create_db ();
@@ -1520,7 +1520,7 @@ public function install_wp_with_composer( $vendor_directory = 'vendor' ): void {
15201520 $ this ->composer_command ( 'require johnpbloch/wordpress-core-installer johnpbloch/wordpress-core --optimize-autoloader ' );
15211521
15221522 // Disable WP Cron by default to avoid bogus HTTP requests in CLI context.
1523- $ config_extra_php = "if ( ! defined( 'DISABLE_WP_CRON' ) ) { define( 'DISABLE_WP_CRON', true ); } \n" ;
1523+ $ config_extra_php = "if ( defined( 'DISABLE_WP_CRON' ) === false ) { define( 'DISABLE_WP_CRON', true ); } \n" ;
15241524
15251525 $ config_extra_php .= "require_once dirname(__DIR__) . '/ " . $ vendor_directory . "/autoload.php'; \n" ;
15261526
You can’t perform that action at this time.
0 commit comments