Skip to content

Better 'version' support for wp [plugin|theme] update.#1510

Merged
danielbachhuber merged 7 commits intowp-cli:masterfrom
boonebgorges:1488-update-version
Nov 24, 2014
Merged

Better 'version' support for wp [plugin|theme] update.#1510
danielbachhuber merged 7 commits intowp-cli:masterfrom
boonebgorges:1488-update-version

Conversation

@boonebgorges
Copy link
Contributor

See #1488.

Pretty straightforward, though in each case I forced the 'force' flag in order to override any cached version values. Not the most elegant solution in the world, but effective for the case when you want to specify the version number.

@danielbachhuber
Copy link
Member

Can you merge master to fix tests, and add some tests to cover this behavior?

@boonebgorges
Copy link
Contributor Author

I take it that these would be behat tests, right? Can you point me to
the proper place in the repo, so I can figure out how to do it properly?

On 11/24/2014 12:24 PM, Daniel Bachhuber wrote:

Can you merge master to fix tests, and add some tests to cover this
behavior?


Reply to this email directly or view it on GitHub
#1510 (comment).

@danielbachhuber
Copy link
Member

szepeviktor and others added 6 commits November 24, 2014 16:51
`version_compare()` can return `-1` or `0`, both of which are falsy.
This caused inconsistent results when the WordPress API started
returning versions out of order
@boonebgorges
Copy link
Contributor Author

Tests added in 6380146 and e492c44.

@danielbachhuber danielbachhuber added this to the next milestone Nov 24, 2014
danielbachhuber added a commit that referenced this pull request Nov 24, 2014
Better 'version' support for `wp [plugin|theme] update`.
@danielbachhuber danielbachhuber merged commit 91528af into wp-cli:master Nov 24, 2014
@danielbachhuber
Copy link
Member

👍

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.

4 participants