Skip to content

wp core download crash when latest WP version is not in the desired locale #240

@neoteknic

Description

@neoteknic

Bug Report

wp core download --locale=xx_XX crash when lastest WP version is not in the desired locale

wp core download && wp language core install fr_FR --activate
is broken too (install ok but not the lang, switching to FR in admin break the website with sql errors)

Example

wp --allow-root core download --locale=fr_FR --force
crash with :
Error: The requested locale (fr_FR ) was not found.

Temp fix force previous version

wp --allow-root core download --locale=fr_FR --version=6.2.2 --force

Solution
allow this command to download the lastest version (6.2.2, instead of 6.3 in the example) to use the desired locale.
wp --allow-root core download --locale=fr_FR --force

or add a flag to allow downloading the previous working version.

Metadata

Metadata

Labels

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions