[wp-trac] [WordPress Trac] #55358: Passing int term term_exists parent param not respected
WordPress Trac
noreply at wordpress.org
Tue Aug 26 21:51:17 UTC 2025
#55358: Passing int term term_exists parent param not respected
-----------------------------------------------------+---------------------
Reporter: spacedmonkey | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: 6.9
Component: Taxonomy | Version:
Severity: normal | Resolution:
Keywords: good-first-bug has-patch has-unit-tests | Focuses:
-----------------------------------------------------+---------------------
Comment (by bobbyleenoblestudios):
At Contributor day - Tested PR - 9092
[https://github.com/WordPress/wordpress-develop/pull/9092]
Manually tested
Parent term id = 1.
Child term id = 2.
{{{
term_exists ( 2 , 'category', 1 ); // Array of child - (this is good,
2 is a child of 1)
term_exists ( 2 , 'category', 2 ); // NULL - (this is good,
2 is not a child of 2)
term_exists ( 2 , 'category', 'lol' ); // Array of child - (this is good,
no term 'lol' - return child term.)
}}}
PHPUnit tests passing.
{{{npm run test:php -- --group 55358}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/55358#comment:13>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list