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: #212 over purging tags #214

Merged
merged 2 commits into from
Apr 28, 2023
Merged

fix: #212 over purging tags #214

merged 2 commits into from
Apr 28, 2023

Conversation

jasonbahl
Copy link
Collaborator

This PR changes the actions that are listened to for purging tags.

Instead of purging in response to the edited_term_taxonomy, which gets called when a post associated with a term is updatated, even when the term relationship hasn't changed, this now responds to the added_term_relationship and deleted_term_relationship hooks, as well as the saved_term hook.

In addition, this adds logic to the transition post status callback to also call the added/deleted term relationship callbacks.

@jasonbahl jasonbahl self-assigned this Apr 28, 2023
@jasonbahl jasonbahl merged commit 69dc168 into main Apr 28, 2023
@jasonbahl jasonbahl mentioned this pull request Apr 28, 2023
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.

1 participant