Opened 7 years ago
Last modified 6 years ago
#36437 new defect (bug)
wp_delete_attachment causes warning
Reported by: |
|
Owned by: | |
---|---|---|---|
Milestone: | Awaiting Review | Priority: | normal |
Severity: | normal | Version: | 2.0 |
Component: | Media | Keywords: | has-patch needs-unit-tests |
Focuses: | Cc: |
Description
wp_delete_attachment assumes that attachments uses category and post_tag taxonomies. This causes a warning in wp_delete_object_term_relationships when post type attachment is not using category or post_tag taxonomies.
Attachments (1)
Change History (5)
Note: See
TracTickets for help on using
tickets.
Hi @thorbrink, would you be able and interested in adding unit tests for this?