[wp-trac] [WordPress Trac] #61456: Taxonomy: Unused variable in `wp_set_object_terms()`

WordPress Trac noreply at wordpress.org
Tue Jun 18 04:11:15 UTC 2024


#61456: Taxonomy: Unused variable in `wp_set_object_terms()`
------------------------------+----------------------
 Reporter:  dlh               |       Owner:  costdev
     Type:  defect (bug)      |      Status:  closed
 Priority:  normal            |   Milestone:  6.6
Component:  Taxonomy          |     Version:  2.3
 Severity:  normal            |  Resolution:  fixed
 Keywords:  has-patch commit  |     Focuses:
------------------------------+----------------------
Changes (by costdev):

 * status:  assigned => closed
 * resolution:   => fixed


Comment:

 In [changeset:"58427" 58427]:
 {{{
 #!CommitTicketReference repository="" revision="58427"
 Taxonomy: Remove unused `$term_ids` in `wp_set_object_terms()`.

 In [5983], a call to `clean_term_cache()` was removed from
 `wp_set_object_terms()`. Since then, the `$term_ids` array that had been
 populated inside one of the `foreach` loops before being passed to the
 removed `clean_term_cache()` call has not been used.

 This change removes the unused `$term_ids` variable.

 Follow-up to [5983].

 Props dlh, mukesh27.
 Fixes #61456.
 }}}

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


More information about the wp-trac mailing list