Skip to content

Commit

Permalink
build(bin/setup-wp.php) ensure 2021 theme installed
Browse files Browse the repository at this point in the history
  • Loading branch information
lucatume committed Nov 23, 2023
1 parent 18c4079 commit 5620d46
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions bin/setup-wp.php
Original file line number Diff line number Diff line change
Expand Up @@ -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']);

Expand Down

0 comments on commit 5620d46

Please sign in to comment.