[wp-trac] [WordPress Trac] #18322: The Road to Magic Quotes Sanity
WordPress Trac
wp-trac at lists.automattic.com
Wed Aug 3 20:26:25 UTC 2011
#18322: The Road to Magic Quotes Sanity
--------------------------+----------------------------
Reporter: ryan | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Future Release
Component: General | Version: 3.2.1
Severity: normal | Keywords:
--------------------------+----------------------------
For back compat reasons, wp_magic_quotes() performs addslashes() on GPCS
data. This is a pain, especially given that some core API expects slashes
and some doesn't. In hopes of someday losing the automatic GPCS slashing,
let's introduce a flag to turn off the slashing as well as slash and
unslash functions that consult the flag. If slashing is on, these
functions add and strip slashes. If slashing is off, they return data
unchanged. Plugin authors can start using these functions and testing
their code with GPCS slashing turned off and on. Eventually, GPCS
slashing would default to off and all calls to the slash and unslash
functions could be removed from core.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/18322>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list