#34626 closed enhancement (fixed)
Delete term meta when deleting a term
| Reported by: | barryceelen | Owned by: | boonebgorges |
|---|---|---|---|
| Priority: | normal | Milestone: | 4.4 |
| Component: | Taxonomy | Version: | 4.4 |
| Severity: | normal | Keywords: | has-patch |
| Cc: | Focuses: |
Description
Attachments (2)
Change History (10)
#3
@
11 years ago
- Milestone Awaiting Review → 4.4
- Owner set to
- Status new → assigned
Welcome to Trac, and thanks very much for the patch, @barryceelen ! Let's get this into 4.4.
#5
@
11 years ago
"Type of object metadata is for (e.g., comment, post, meta, or user)."
Meta is wrong, it should be term.
@
11 years ago
Fixes incorrect comment on delete_metadata_by_mid(), adds term meta code comment love to other meta functions
#6
@
11 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.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
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().