Skip to content

Fix/fix wordpress version - #70

Draft
RobjS wants to merge 2 commits into
php8.2from
fix/fix-wordpress-version
Draft

Fix/fix wordpress version#70
RobjS wants to merge 2 commits into
php8.2from
fix/fix-wordpress-version

Conversation

@RobjS

@RobjS RobjS commented Aug 10, 2026

Copy link
Copy Markdown
Contributor

No description provided.

RobjS added 2 commits August 10, 2026 14:49
Before: often the WORDPRESS_VERSION set as an env var would not be
applied. This was because the `core update` command was running before
the database connection was ready, so it would fail silently.

Now: We wait for the database connection to be ready before running
`core update`, so the latest version is applied correctly. We also set a
default `WORDPRESS_VERSION` of `latest`, so this process will not fail
if `WORDPRESS_VERSION` is set as a null value.
Before: `WORDPRESS_AUTO_UPDATE_CORE` would always use the default value
of true. This meant that even if we successfully set an old
WORDPRESS_VERSION env var, it would often then immediately update itself
back to the correct version.

Now: if a `WORDPRESS_VERSION` env var is set,
`WORDPRESS_AUTO_UPDATE_CORE` will always be false. If a
`WORDPRESS_AUTO_UPDATE_CORE` env var is set (and a `WORDPRESS_VERSION`
is not), it will use that value. If neither are set, it defaults back to
true.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant