Skip to content

wp core download with --locale failed #316

Description

@tobias992

Hi,

The command wp core download --locale=de_DE fails with the error:
Error: The requested locale (de_DE) was not found.

I’m aware that WordPress has recently had some issues with the release process. However, even if the latest localized version is not yet available, WP-CLI should ideally fall back to downloading the most recent previously available version instead of failing with this error.

Activity

  1. wojsmol commented on Mar 12, 2026

    @wojsmol
    Contributor

    However, even if the latest localized version is not yet available, WP-CLI should ideally fall back to downloading the most recent previously available version instead of failing with this error.

    This may cause usage of insecure WordPress version. Because of that I use in my script

    wp core download
    wp core install ...  
    wp core language install pl_PL --activate
    
  2. tobias992 commented on Mar 12, 2026

    @tobias992
    Author

    Alternatively, falling back to en_US might be the safer option. However, you raise a valid point with your two-step approach. Does wp core language also modify the version.php file or does it just add the language files?

    Sorry, I’m unable to test this at the moment.

  3. wojsmol commented on Mar 12, 2026

    @wojsmol
    Contributor

    @tobias992 $wp_local_package is not set in wp-includes/version.php with my approach.

  4. tobias992 commented on Mar 12, 2026

    @tobias992
    Author

    I had already thought so. Thank you.

  5. swissspidy commented on Mar 12, 2026

    @swissspidy
    Member

    The de_DE ZIP file for 6.9.4 hasn't been built yet for some reason, see discussion https://wordpress.slack.com/archives/C02RQBWTW/p1773313708432039. That's why you don't see 6.9.4 at https://de.wordpress.org/download/ yet.

    I don't think it's worth adding any fallbacks to older (insecure) versions or a version with a different locale (unexpected) for this kind of temporary situation.

  6. swissspidy commented on Mar 13, 2026

    @swissspidy
    Member

    This should be resolved now.

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions