#34626 closed enhancement (fixed)
Delete term meta when deleting a term
Reported by: |
|
Owned by: |
|
---|---|---|---|
Milestone: | 4.4 | Priority: | normal |
Severity: | normal | Version: | 4.4 |
Component: | Taxonomy | Keywords: | has-patch |
Focuses: | Cc: |
Description
Attachments (2)
Change History (10)
#3
@
9 years ago
- Milestone changed from Awaiting Review to 4.4
- Owner set to boonebgorges
- Status changed from new to assigned
Welcome to Trac, and thanks very much for the patch, @barryceelen ! Let's get this into 4.4.
#5
@
9 years ago
"Type of object metadata is for (e.g., comment, post, meta, or user)."
Meta is wrong, it should be term.
@
9 years ago
Fixes incorrect comment on delete_metadata_by_mid(), adds term meta code comment love to other meta functions
#6
@
9 years ago
Groan. Thanks, @swissspidy.
@barryceelen Thanks for the patch. To reduce churn, I'm going to leave these docblocks untouched. The description reads "e.g.", which means "for example". We don't need for the list to be comprehensive, and in fact, it can't be comprehensive since plugins can use these functions for custom metadata.
Note: See
TracTickets for help on using
tickets.
When deleting a post or user its meta values are deleted as well. The patch adds the same behaviour when deleting a term via wp_delete_term().