[wp-trac] [WordPress Trac] #35213: Pass object ids to filters in wp_delete_term()

WordPress Trac noreply at wordpress.org
Wed Dec 23 22:33:51 UTC 2015


#35213: Pass object ids to filters in wp_delete_term()
--------------------------+-----------------
 Reporter:  obenland      |      Owner:
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  4.5
Component:  Taxonomy      |    Version:
 Severity:  normal        |   Keywords:
  Focuses:                |
--------------------------+-----------------
 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.

--
Ticket URL: <https://core.trac.wordpress.org/ticket/35213>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list