Pass array to query_vars
-
When adding an array to the global query variables with the
query_vars
hook, it is always flattened to the string ‘Array’.I remember seeing a ticket on trac about this, but now I can’t seem to find it.
Can anyone shed any light, is there a workaround?
["query_vars"]=> array(1) { ["multi-cat"]=> string(5) "Array" }
Update: There’s a ticket here that explains all values are cast as strings for security.
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘Pass array to query_vars’ is closed to new replies.