OSDN Git Service

Improve `theme install` logic to support force-installing a specific version.
authorDaniel Bachhuber <d@danielbachhuber.com>
Tue, 2 Jul 2013 03:18:54 +0000 (20:18 -0700)
committerDaniel Bachhuber <d@danielbachhuber.com>
Tue, 2 Jul 2013 03:18:54 +0000 (20:18 -0700)
commita7c9fd9ca8dd5e4214b0674eeeedc59aa27d4d13
tree33c9ebb2b70a1797e734e85f26835181fa86b22e
parent22c2bdc3677f7e158e4d0d60ad03f84d9337df3b
Improve `theme install` logic to support force-installing a specific version.

Previous `theme install` logic:

* Updates the theme if there's an update available.
* Installs if the theme isn't installed.
* Otherwise, assume the theme is installed.

New `theme install` logic:

* Don't do anything if theme is already installed and no `--version` specified.
* If `--version` is set and is different than what's installed, force install.
* Install if the theme isn't installed.
php/commands/theme.php