Skip to content

Conversation

Perfect-Chaos
Copy link

Added parameter version to wp-cli core download to download a specific version of Wordpress

Added parameter `version` to `wp-cli core download` to download a specific version of Wordpress
Added parameter `version` to `wp-cli core download` to download a specific version of Wordpress
@@ -15,6 +15,7 @@
wp-cli core download
--allow-root --no-color --path='{{ item.item.path }}'
--locale='{{ item.item.locale | default('en_US') }}'
--version='{{ item.item.version| default('6.2') }}'
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe only add this option if item.item.version is defined?

@@ -25,6 +25,7 @@ This role assumes a working virtual host (that handles `wordpress_url`).
* `wordpress_installs.{n}.dbprefix`: [default: `wp_`, optional]: Prefix for database tables
* `wordpress_installs.{n}.path`: [required]: Install directory for wordpress
* `wordpress_installs.{n}.locale`: [default: `en_US`, optional]: Language of the downloaded Wordpress
* `wordpress_installs.{n}.version`: [default: `6.2`, optional]: Version of the downloaded Wordpress
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Better make this optional, because this will be out-of-date too often

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants