Skip to content

Commit

Permalink
Make all WordPress check in lower case. (#457)
Browse files Browse the repository at this point in the history
  • Loading branch information
abhisekmazumdar authored Jul 20, 2022
1 parent 78f22c7 commit e161b34
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/Commands/BuildToolsBase.php
Original file line number Diff line number Diff line change
Expand Up @@ -760,7 +760,7 @@ protected function getInstallCommandTemplate($composer_json, $app)
if (isset($composer_json['extra']['build-env']['install-cms'])) {
return $composer_json['extra']['build-env']['install-cms'];
}
if ($app === 'Wordpress') {
if (strtolower($app) === 'wordpress') {
return [
'wp core install --title={site-name} --url={site-url} --admin_user={account-name} --admin_email={account-mail} --admin_password={account-pass}',
'wp option update permalink_structure "/%postname%/"',
Expand Down
2 changes: 1 addition & 1 deletion src/Commands/ProjectCreateCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -362,7 +362,7 @@ public function createProject(
exec("composer --working-dir=$siteDir require --no-update --dev drupal/coder drupal/drupal-extension drupal/drupal-driver");
exec("composer --working-dir=$siteDir require --no-update drush-ops/behat-drush-endpoint");
exec("composer --working-dir=$siteDir require --no-update pantheon-systems/quicksilver-pushback");
} elseif ($app === 'WordPress') {
} elseif (strtolower($app) === 'wordpress') {
exec("composer --working-dir=$siteDir require --no-update --dev paulgibbs/behat-wordpress-extension --ignore-platform-reqs");
}
exec("composer --working-dir=$siteDir update");
Expand Down

0 comments on commit e161b34

Please sign in to comment.