|Reported by:||TobiasBg||Owned by:|
|Component:||Formatting||Keywords:||has-patch needs-unit-tests dev-feedback|
According to ryan, it has been modelled after $wpdb->prepare(), and therefore uses a custom foreach loop with an if-check in it.
I suggest to instead model it after stripslashes_deep() and urlencode_deep() to simplify the function and make it better readable.
The attached patch also makes it clearer that this function works in a recursive manner.