[wp-trac] [WordPress Trac] #21767: Remove stripslashes from API functions
WordPress Trac
wp-trac at lists.automattic.com
Sun Sep 2 11:48:35 UTC 2012
#21767: Remove stripslashes from API functions
-------------------------------------------------+-------------------------
Reporter: alexkingorg | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting
Component: General | Review
Severity: normal | Version: trunk
Keywords: has-patch needs-testing needs-unit- | Resolution:
tests |
-------------------------------------------------+-------------------------
Comment (by johnbillion):
-1 on introducing a slew of new functions just to address this issue.
The only time the current expected slashes behaviour is a problem is when
the content you're passing to one of the affected functions contains a
backslash which isn't escaping another backslash.
Might it be possible to run a regex within in each of these functions
which tests for double backslashes and then treats the content as slashed
or not slashed accordingly? Effectively allowing the functions to accept
both slashed and non-slashed content?
--
Ticket URL: <http://core.trac.wordpress.org/ticket/21767#comment:5>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list