[wp-trac] [WordPress Trac] #22325: Abstract GPCS away from the superglobals
WordPress Trac
noreply at wordpress.org
Thu Feb 28 22:33:29 UTC 2013
#22325: Abstract GPCS away from the superglobals
-------------------------+-----------------------------
Reporter: rmccue | Owner:
Type: enhancement | Status: new
Priority: normal | Milestone: Future Release
Component: General | Version:
Severity: minor | Resolution:
Keywords: |
-------------------------+-----------------------------
Comment (by CaptainN):
I don't think it was a dumb decision. I think magic quotes is confusing,
not very secure in a broader sense, and teaches bad practice.
I wasn't around WordPress at the time, but I'd guess the enforcement of
magic quotes on the PHP superglobals was added to WordPress in response to
the change in upstream default behavior by PHP - so it was probably more
of an active change to default WP behavior than a change that happened
through attrition. The result is the same either way, WordPress is left in
a state where its behavior changes default PHP behavior to match legacy
PHP behavior.
Maybe it would have been better for PHP to create a different GPCS
variable set or framework and deprecate the old one, instead of just
changing the default behavior the way they did - that was pretty silly.
It doesn't really matter now, it's great that WordPress is finally making
an effort to match the default PHP behavior. :-)
--
Ticket URL: <http://core.trac.wordpress.org/ticket/22325#comment:39>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list