|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.
Change History (15)
comment:3 @SergeyBiryukov — 2 years ago
- Keywords commit added
- Milestone changed from Awaiting Review to 3.8
- Keywords commit removed
- Milestone changed from 3.8 to Future Release