I disabled magic_quotes in my php.ini.
But I still get escaped strings in my form.
Note: I’m running this in a theme in WordPress.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
I actually already figured this out, just want to leave my solution here in case other people might find it useful:
WordPress automatically escapes all request variables. If magic quotes are turned off, they strip the slashes first, but add them again afterwards.
wp-settings.php code piece:
Source: http://www.wptextads.com/blog/2007/05/19/gpc-magic-quotes-in-wordpress-is-compulsory/