File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
Expand file tree Collapse file tree 1 file changed +3
-3
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 ); } " . PHP_EOL ;
1447+ $ config_extra_php = "if ( ! defined( 'DISABLE_WP_CRON' ) ) { define( 'DISABLE_WP_CRON', true ); } \n" ;
14481448
14491449 if ( 'sqlite ' !== self ::$ db_type ) {
14501450 $ this ->create_db ();
@@ -1520,9 +1520,9 @@ 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 ); } " . PHP_EOL ;
1523+ $ config_extra_php = "if ( ! defined( 'DISABLE_WP_CRON' ) ) { define( 'DISABLE_WP_CRON', true ); } \n" ;
15241524
1525- $ config_extra_php .= "require_once dirname(__DIR__) . '/ " . $ vendor_directory . "/autoload.php'; " . PHP_EOL ;
1525+ $ config_extra_php .= "require_once dirname(__DIR__) . '/ " . $ vendor_directory . "/autoload.php'; \n" ;
15261526
15271527 $ this ->create_config ( 'WordPress ' , $ config_extra_php );
15281528
You can’t perform that action at this time.
0 commit comments