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

WordPress Trac noreply at wordpress.org
Wed Feb 19 09:17:30 UTC 2014


#18322: The Road to Magic Quotes Sanity
----------------------------+-----------------------------
 Reporter:  ryan            |       Owner:
     Type:  defect (bug)    |      Status:  new
 Priority:  normal          |   Milestone:  Future Release
Component:  Bootstrap/Load  |     Version:  3.2.1
 Severity:  major           |  Resolution:
 Keywords:                  |     Focuses:
----------------------------+-----------------------------
Changes (by arman.poghosyan):

 * severity:  normal => major


Comment:

 I was having issues with slashes in my plugin while sending JSON string in
 POST to manipulate object data in php. It's nonsense to have magic_quotes
 on in Wordpress and it's very hard to debug first time.

 I'm using PHP > 5.4 both on local servers and production servers. Majority
 of shared hostings are already on PHP > 5.4, so magic_quotes are disabled
 and deprecated by default and nobody expects that it can cause problem.

 Further checking magic_quotes in PHP with get_magic_quotes_gpc() always
 returns 0, so I couldn't even imagine that Wordpress could add quotes on
 its own.

 I think it's time to change this behavior and or turn it off by default.
 Or intorduce some flag in config, that will make it obvious, that it's
 Wordpress issue.

--
Ticket URL: <https://core.trac.wordpress.org/ticket/18322#comment:31>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list