#35213 closed enhancement (fixed)
Pass object ids to filters in wp_delete_term()
| Reported by: | obenland | Owned by: | obenland |
|---|---|---|---|
| Priority: | normal | Milestone: | 4.5 |
| Component: | Taxonomy | Version: | |
| Severity: | normal | Keywords: | has-patch |
| Cc: | Focuses: |
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)
This ticket was mentioned in Slack in #core by obenland. View the logs.
11 years ago
Note:
See TracTickets
for help on using tickets.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
Also,
$objectsis the wrong variable name for this list. It should be$object_ids.