Skip to content

Instantly share code, notes, and snippets.

@eddy8
eddy8 / wp_magic_quotes.php
Created May 9, 2013 02:31
PHP:wp functions - wp_magic_quotes
<?php
/**
* Add magic quotes to $_GET, $_POST, $_COOKIE, and $_SERVER.
*
* Also forces $_REQUEST to be $_GET + $_POST. If $_SERVER, $_COOKIE,
* or $_ENV are needed, use those superglobals directly.
*
* @access private
* @since 3.0.0
*/