Skip to content

Block passing --activate in theme install with multiple themes #406

@ernilambar

Description

@ernilambar

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.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions