From 5620d4639d9417f6227dbbc328a1809b97962a1b Mon Sep 17 00:00:00 2001 From: Luca Tumedei Date: Thu, 23 Nov 2023 17:07:53 +0100 Subject: [PATCH] build(bin/setup-wp.php) ensure 2021 theme installed --- bin/setup-wp.php | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/bin/setup-wp.php b/bin/setup-wp.php index 1404b11f0..3439a39ee 100644 --- a/bin/setup-wp.php +++ b/bin/setup-wp.php @@ -93,6 +93,12 @@ $installation->runWpCliCommandOrThrow(['theme', 'install', 'twentytwenty', '--activate']); } +echo "Checking TwentyTwentyOne theme in $wpRootDir ...\n"; +if (!is_dir($wpRootDir . '/wp-content/themes/twentytwentyone')) { + echo "Installing TwentyTwentyOne theme in $wpRootDir ...\n"; + $installation->runWpCliCommandOrThrow(['theme', 'install', 'twentytwentyone', '--activate']); +} + echo "Installing required test plugins in $wpRootDir ...\n"; $installation->runWpCliCommandOrThrow(['plugin', 'install', 'woocommerce', 'akismet', 'hello-dolly']);