I have wordpress installation where the magic quotes is set ON in the phpini file. this cause that every quote is duplicated every time I update a post.
I can't change the phpini is out of my capability, so the only way is by php code.
the parameter in my wp-config.php file is set with magic quote to 0.
Someone know where I add some code to perform it.
I use the custom post so I need of a solution with this compatible.
thanks in advance.
at the end I have found 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 );
}
to set at the begin of my page.
and it works.
thanks to all.