Automattic / wp-calypso

The JavaScript and API powered WordPress.com
https://developer.wordpress.com
GNU General Public License v2.0
12.42k stars 1.99k forks source link

Call plugin activation from blog context #62723

Closed epeicher closed 2 years ago

epeicher commented 2 years ago

The plugin activation command is called from the context of clitools, not from the intended blog’s context.

In order for this to work, the context will need to switch to the target blog using before running and then restore it afterwards.

More info here: pdh6GB-zu-p2#comment-1195

epeicher commented 2 years ago

Diff created D78936-code