[wp-trac] [WordPress Trac] #36992: In get_terms(), getting a fatal error iterating on $terms inside get_terms filter.
WordPress Trac
noreply at wordpress.org
Fri Jun 3 19:15:51 UTC 2016
#36992: In get_terms(), getting a fatal error iterating on $terms inside get_terms
filter.
---------------------------+---------------------------
Reporter: JustinSainton | Owner: boonebgorges
Type: defect (bug) | Status: reopened
Priority: normal | Milestone: 4.6
Component: Taxonomy | Version: trunk
Severity: normal | Resolution:
Keywords: | Focuses:
---------------------------+---------------------------
Changes (by nathanrice):
* status: closed => reopened
* resolution: fixed =>
Comment:
FWIW, this is still somewhat broken. I've not had a chance to chase down
why, but if you use array type hinting in your callback on the `get_terms`
filter, you get the following error.
`Catchable fatal error: Argument 1 passed to genesis_get_terms_filter()
must be of the type array, string given`
Obviously, this is in the Genesis theme.
Anybody know what's going on here? Why is a argument not of type `array`
ever being passed to the `get_terms` filter?
--
Ticket URL: <https://core.trac.wordpress.org/ticket/36992#comment:5>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list