What is the proper way to sanitize $_POST and $_GET vars?
If I understand correctly, WordPress automatically applies a wp_slash() on the global $_POST variable: should this means that for any $_POST variable, prior to saving to the DB, we should first unslash it? Which one of the following solution is the correct one? Is the $_GET variable also slashed? Do we need to apply the … Read more