This is happening because your theme is doing something that it should not be doing on purpose. It's applying the stripslashes function call to ANYTHING that posts. This is bad. Very bad. Plugins aren't expecting this to happen so it can cause problems.
Gravity Forms uses AJAX and utilizes slashes in the code, your theme is stripping out the slashes because it's applying this to all POST actions. So any form that is submitted, including the form editor. This is bad because your theme is assuming it's all right to globally do this, when it is not.
The code is in your themes functions.php at the top. It looks like this:
if ( get_magic_quotes_gpc() ) {
$_POST = array_map( 'stripslashes_deep', $_POST );
$_GET = array_map( 'stripslashes_deep', $_GET );
$_COOKIE = array_map( 'stripslashes_deep', $_COOKIE );
$_REQUEST = array_map( 'stripslashes_deep', $_REQUEST );
}
I would suggest removing that code and testing your theme. They shouldn't be doing this.
Posted 13 years ago on Monday March 7, 2011 |
Permalink