Tips resolving Apostrophe and Backslash error in WordPress

This piece of code in the WordPress codex and put it into functions.php: if ( get_magic_quotes_gpc() ) { $_GET = stripslashes_deep($_GET ); $_POST = stripslashes_deep($_POST ); $_COOKIE = stripslashes_deep($_COOKIE); } The existence of magic quotes has been a headache...