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

WordPress Trac noreply at wordpress.org
Sat Nov 30 16:28:29 UTC 2019


#35213: Pass object ids to filters in wp_delete_term()
-------------------------+-----------------------
 Reporter:  obenland     |       Owner:  obenland
     Type:  enhancement  |      Status:  closed
 Priority:  normal       |   Milestone:  4.5
Component:  Taxonomy     |     Version:
 Severity:  normal       |  Resolution:  fixed
 Keywords:  has-patch    |     Focuses:
-------------------------+-----------------------

Comment (by jtj84723):

 Replying to [ticket:35213 obenland]:
 > 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 [https://newminecraftapk.com] allowing for a more targeted query.


 ok

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


More information about the wp-trac mailing list