[wp-trac] [WordPress Trac] #41585: Wrong parameter type for term_id in get_term_children
WordPress Trac
noreply at wordpress.org
Tue Aug 8 15:15:57 UTC 2017
#41585: Wrong parameter type for term_id in get_term_children
-------------------------+-----------------------------
Reporter: wido | Owner:
Type: enhancement | Status: new
Priority: normal | Milestone: Awaiting Review
Component: General | Version:
Severity: normal | Keywords:
Focuses: docs |
-------------------------+-----------------------------
The parameter `$term_id` must be an int value for `get_term_children()`
but the doc say `string`.
Internally the variable is converted to an `int` using the function
`intval` that is correct since we cannot take advantage of php7 scalar
type declaration but the correct value to pass to the function must be an
integer not a string.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/41585>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list