[wp-trac] [WordPress Trac] #60532: Add a `pre_set_object_terms` action

WordPress Trac noreply at wordpress.org
Tue Oct 29 06:03:05 UTC 2024


#60532: Add a `pre_set_object_terms` action
--------------------------------------+------------------------------
 Reporter:  davidbaumwald             |       Owner:  (none)
     Type:  enhancement               |      Status:  new
 Priority:  normal                    |   Milestone:  Awaiting Review
Component:  Taxonomy                  |     Version:  6.5
 Severity:  normal                    |  Resolution:
 Keywords:  good-first-bug has-patch  |     Focuses:
--------------------------------------+------------------------------

Comment (by apermo):

 @geekofshire @sagarsavani7979 Imho the position of the filter is broken as
 it is in the patch and PR. The position is too low, `$object_id` is
 already used before to fill `$old_tt_ids`. So under normal conditions
 `$old_tt_ids` will have the wrong content if `$append` is `false`

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


More information about the wp-trac mailing list