[wp-trac] [WordPress Trac] #24106: Simplify wp_slash()
WordPress Trac
noreply at wordpress.org
Wed Feb 12 19:59:02 UTC 2014
#24106: Simplify wp_slash()
----------------------------------------+-----------------------------
Reporter: TobiasBg | Owner:
Type: enhancement | Status: new
Priority: normal | Milestone: Future Release
Component: Formatting | Version: 3.6
Severity: normal | Resolution:
Keywords: has-patch needs-unit-tests | Focuses:
----------------------------------------+-----------------------------
Changes (by TobiasBg):
* keywords: has-patch => has-patch needs-unit-tests
Comment:
devesine, I'm not sure what you mean with datatype loss here.
`wp_slash()`/`wp_unslash()` (both the patched and the unpatched versions)
will only work with strings and (nested) arrays of strings, which
basically is a result of PHP's `stripslashes()` only accepting and
returning a string.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/24106#comment:9>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list