[wp-trac] [WordPress Trac] #55358: Passing int term term_exists parent param not respected

WordPress Trac noreply at wordpress.org
Tue Aug 26 22:22:29 UTC 2025


#55358: Passing int term term_exists parent param not respected
-------------------------------------------------+-------------------------
 Reporter:  spacedmonkey                         |       Owner:
                                                 |  davidbaumwald
     Type:  defect (bug)                         |      Status:  closed
 Priority:  normal                               |   Milestone:  6.9
Component:  Taxonomy                             |     Version:
 Severity:  normal                               |  Resolution:  fixed
 Keywords:  good-first-bug has-patch has-unit-   |     Focuses:
  tests                                          |
-------------------------------------------------+-------------------------
Changes (by davidbaumwald):

 * owner:  (none) => davidbaumwald
 * status:  new => closed
 * resolution:   => fixed


Comment:

 In [changeset:"60676" 60676]:
 {{{
 #!CommitTicketReference repository="" revision="60676"
 Taxonomy: Ensure term_exists respects $parent_term when $term is an
 integer.

 This change updates `term_exists` by ensuring that any numeric value
 passed as the `$parent_term` argument is passed to the subsequent
 `get_terms` call when the `$term` argument is an integer.  This change
 includes unit tests to validate the fix.

 Props spacedmonkey, lopo, lgadzhev, hugod, thehercules, nickbrazilian,
 audrasjb, vijendrajat, sachinrajcp123, bobbyleenoblestudios.
 Fixes #55358.
 }}}

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


More information about the wp-trac mailing list