#35213 closed enhancement (fixed)
Pass object ids to filters in wp_delete_term()
Reported by: | obenland | Owned by: | obenland |
---|---|---|---|
Milestone: | 4.5 | Priority: | normal |
Severity: | normal | Version: | |
Component: | Taxonomy | Keywords: | has-patch |
Focuses: | Cc: |
Description
If a site has a large amount of posts associated with a term, custom queries hooked into delete_term
or delete_$taxonomy
can become very expensive. On WordPress.com we pass the affected object ids to the actions as well, allowing for a more targeted query.
Attachments (3)
Change History (8)
Note: See
TracTickets for help on using
tickets.
Also,
$objects
is the wrong variable name for this list. It should be$object_ids
.