Opened 6 years ago
Closed 6 years ago
#41585 closed enhancement (fixed)
Wrong parameter type for term_id in get_term_children
Reported by: |
|
Owned by: |
|
---|---|---|---|
Milestone: | 4.9 | Priority: | normal |
Severity: | normal | Version: | |
Component: | Taxonomy | Keywords: | has-patch |
Focuses: | docs | Cc: |
Description
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.
Attachments (1)
Change History (4)
Note: See
TracTickets for help on using
tickets.
Changes $term_id @param docs from string to int