Skip to content

Allow installing major version with trailing zero #275

@swissspidy

Description

@swissspidy

Bug Report

Describe the current, buggy behavior

I should be able to run wp core update --version=6.7.0 instead of wp core update --version=6.7

Describe how other contributors can replicate this bug

Run wp core update --version=6.7.0

It doesn't work because it looks for a https://wordpress.org/wordpress-6.7.0.zip ZIP file that doesn't exist.

Describe what you would expect as the correct outcome

Using this version should work.

Let us know what environment you are running this on

n/a

Provide a possible solution

We should just turn 6.7.0 into 6.7.

Provide additional context/Screenshots

Add any other context about the problem here.

If applicable, add screenshots to help explain (you can just drag&drop images into the Github issue).

Metadata

Metadata

Assignees

No one assigned

    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