id summary reporter owner description type status priority milestone component version severity resolution keywords cc focuses 24106 Simplify wp_slash() TobiasBg whyisjake "[23416] added the function {{{wp_slash()}}} for the slashing sanitization in #21767. [https://irclogs.wordpress.org/chanlog.php?channel=wordpress-dev&day=2013-04-16&sort=asc#m595515 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." defect (bug) closed normal 5.5 Formatting 3.6 normal fixed has-patch needs-unit-tests dev-feedback