-
Notifications
You must be signed in to change notification settings - Fork 51
venue terms are not deleted with venue posts #730
Copy link
Copy link
Closed
Labels
bugSomething isn't workingSomething isn't working
Description
Describe the bug
The terms of the shadow taxonomy _gatherpress_venue are not deleted, when the corresponding gatherpress_venue posts are deleted.
This is happening, because a trashed post gets its post_name changed to 'original' + '__trashed', which is not reflected on the venue terms, because the terms get only updated on status 'published'. On post deletion, the slug of the post to delete gets compared to existing venue term slugs. Now, that nothing matches, the old and original venue term stays in the DB forever.
Steps to Reproduce
- Take a look at your wp_terms DB table
- You'll find all venues, you ever created ;)
Screenshots, screen recording, code snippet
No response
Environment information
No response
WordPress information
No response
Code of Conduct
- I agree to follow this project's Code of Conduct
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working