| 4 | |
| 5 | ---- |
| 6 | Also noting that this affects the larger family of `wp_kses*` functions, not just wp_kses_post. And also that previously, arrays were actually escaped, at least somewhat: |
| 7 | |
| 8 | {{{#!php |
| 9 | <?php |
| 10 | $test = ['text', '<script>alert("hi")</script>']; |
| 11 | |
| 12 | wp_kses_post($test); |
| 13 | array(2) { |
| 14 | [0] => string(4) "text" |
| 15 | [1] => string(11) "alert("hi")" |
| 16 | } |
| 17 | }}} |
| 18 | |
| 19 | At the end of the day, it just needs to be decided one way or the other regarding array support, whether permanent or even temporary while being phased out. |
| 20 | |
| 21 | As-is, it just broke with this new filter as a side affect of how it does it's business in the loop. Which is suboptimal. |