Skip to content

Commit 6fbfd2a

Browse files
Allow all plugins before requiring plugins 😉
1 parent 1977c4f commit 6fbfd2a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

‎src/Context/FeatureContext.php‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -939,10 +939,10 @@ public function install_wp_with_composer( $vendor_directory = 'vendor' ) {
939939
$this->composer_command( 'init --name="wp-cli/composer-test" --type="project"' );
940940
$this->composer_command( 'config vendor-dir ' . $vendor_directory );
941941
$this->composer_command( 'config extra.wordpress-install-dir WordPress' );
942-
$this->composer_command( 'require johnpbloch/wordpress-core-installer johnpbloch/wordpress-core --optimize-autoloader' );
943942

944943
// Allow for all Composer plugins to run to avoid warnings.
945-
$this->composer_command( 'config allow-plugins true' );
944+
$this->composer_command( 'config --no-plugins allow-plugins true' );
945+
$this->composer_command( 'require johnpbloch/wordpress-core-installer johnpbloch/wordpress-core --optimize-autoloader' );
946946

947947
// Disable WP Cron by default to avoid bogus HTTP requests in CLI context.
948948
$config_extra_php = "if ( ! defined( 'DISABLE_WP_CRON' ) ) { define( 'DISABLE_WP_CRON', true ); }\n";

0 commit comments

Comments
 (0)