Skip to content

venue terms are not deleted with venue posts #730

@carstingaxion

Description

@carstingaxion

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

  1. Take a look at your wp_terms DB table
  2. 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

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions