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 Term deletion #2366

Merged
merged 5 commits into from
Sep 25, 2021
Merged

Fix Term deletion #2366

merged 5 commits into from
Sep 25, 2021

Conversation

felipeelia
Copy link
Member

Description of the Change

As stated in #2365, when a term is deleted, it is not removed from the ES index, as current_user_can( 'delete_term', $term_id ) will fail after the term deletion. This PR changes the hook used for action_sync_on_delete.

Applicable Issues

Closes #2365

Changelog Entry

Fixed: Deleted terms are now properly removed from the Elasticsearch index.

@felipeelia felipeelia merged commit 4dfceb4 into develop Sep 25, 2021
@felipeelia felipeelia deleted the fix/issue-2365 branch September 25, 2021 12:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

BUG: Deleted terms are not removed from ES
2 participants