Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix: correctly deactivate network activated plugin before uninstall. #319

Closed
wants to merge 7,737 commits into from

Conversation

NielsdeBlaauw
Copy link

@NielsdeBlaauw NielsdeBlaauw commented Jun 2, 2022

When uninstalling a network activated plugin, the network tag is now added to correctly deactivate the plugin before removal.

Fixes #312

danielbachhuber and others added 30 commits March 5, 2019 08:48
…tion

Handle extension activation for WP error or extension not found
…-alert

Display warning in plugin list info if plugin version is higher than expected
Move PHP 5.4 tests from `WP_VERSION` `latest` to `5.1`
Fix the wp-cli#166 bug:
the "wp theme search" command has not the "page" option
Enhancement: Add PHP 7.3 to Travis CI build matrix
Update .distignore and .gitignore with phpcs/phpunit config files
Update wp-cli-tests to 2.1
@NielsdeBlaauw NielsdeBlaauw requested a review from a team as a code owner June 2, 2022 13:41
@NielsdeBlaauw NielsdeBlaauw changed the title Fixes #312. Fix: correctly deactivate network activated plugin before uninstall. Jun 2, 2022
@Sidsector9
Copy link
Member

@NielsdeBlaauw thank you for your contribution! It looks good to me, however the functional tests are failing. Can you please look into it?
Let me know if you need any help, thanks!

@NielsdeBlaauw
Copy link
Author

@Sidsector9 thanks, I've updated the changeset to fix the output for results reporting. Cheers.

@janw-me
Copy link
Member

janw-me commented Jun 6, 2022

The code looks good. It should have a test to cover this specific usage with a multisite.
I recommend taking a look here to write tests with a multisite setup.

If you need help give a shout.

@danielbachhuber
Copy link
Member

Proceeding with wp-cli/wp-cli#5594 for this repository. I've captured this PR to https://gist.github.com/danielbachhuber/f9aa4f759c7d57ff2663d07766241692 in case this PR is auto-closed or broken in some way.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Uninstall with --deactivate flag