Wordpress: remove backslashes


/ Published in: Other
Save to your folder(s)



Copy this code and paste it in your HTML
  1. <?php
  2. if ( get_magic_quotes_gpc() ) {
  3. $_POST = array_map( 'stripslashes_deep', $_POST );
  4. $_GET = array_map( 'stripslashes_deep', $_GET );
  5. $_COOKIE = array_map( 'stripslashes_deep', $_COOKIE );
  6. $_REQUEST = array_map( 'stripslashes_deep', $_REQUEST );
  7. }
  8. ?>

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.