[wp-trac] [WordPress Trac] #18322: The Road to Magic Quotes Sanity

WordPress Trac noreply at wordpress.org
Mon Apr 22 01:18:35 UTC 2013


#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        |  Resolution:
 Keywords:                |
--------------------------+-----------------------------

Comment (by thanatica2):

 So the biggest problem, realistically speaking, is that any sane standard
 test for magic quotes will always result in FALSE as of PHP 5.4, while
 magic quotes are still being applied. There seems to be no test for WP's
 magic quotes. So even in the future when WP fixes this, scripts that
 actually depend on it will fail. But I couldn't care less, because this is
 wrong behaviour. And wrong behaviour should not be maintained for the sake
 of old scripts and more bad code, not to mention performance hits. Just
 fix it and eat the consequences. You should have known it was coming to a
 point like this.

 So here's a solution.

 DO NOT apply magic quotes. Seriously. Remove them when PHP added them, but
 NEVER ADD THEM BACK. Quite simple really. I could even propose a piece of
 code that fixes everything. But it's so blazingly simple it shouldn't be
 neccesary.

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/18322#comment:25>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list