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

Require the utils file in the uninstaller #3407

Merged
merged 11 commits into from
Mar 31, 2023
Merged

Conversation

felipeelia
Copy link
Member

Description of the Change

Fixes an error while uninstalling the plugin:

Fatal error: Uncaught Error: Call to undefined function ElasticPress\Utils\get_capability() in /var/www/html/wp-content/plugins/elasticpress/uninstall.php:225

Closes #

How to test the Change

Install and activate the plugin, then run wp plugin uninstall elasticpress

Changelog Entry

Fixed - Fatal error during plugin uninstall

Credits

Props @felipeelia

Checklist:

  • I agree to follow this project's Code of Conduct.
  • I have updated the documentation accordingly.
  • I have added tests to cover my change.
  • All new and existing tests pass.

@felipeelia felipeelia added this to the 5.0.0 milestone Mar 27, 2023
@felipeelia felipeelia modified the milestones: 5.0.0, 4.5.1 Mar 28, 2023
Copy link
Contributor

@burhandodhy burhandodhy left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@felipeelia felipeelia merged commit 2f0dc1b into develop Mar 31, 2023
@felipeelia felipeelia deleted the fix/plugin-uninstall branch March 31, 2023 12:09
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.

2 participants