extension-command icon indicating copy to clipboard operation
extension-command copied to clipboard

Block passing --activate in theme install with multiple themes

Open ernilambar opened this issue 2 years ago • 1 comments

Bug Report

Describe the current, buggy behavior

When two themes are passed to install with activate flag, first theme is activated and after second theme is installed, newly installed theme is activated.

wp theme install simple-life blue-planet --activate

May be we should warn users in such case like:

Error: Only a single theme can be active.

Describe what you would expect as the correct outcome

Error: Only a single theme can be active.

ernilambar avatar Feb 16 '24 09:02 ernilambar

Good catch!

Another option is a warning instead of an error. I think I'd opt for the warning because throwing an error would be a breaking change.

danielbachhuber avatar Feb 20 '24 13:02 danielbachhuber