Return to Snippet

Revision: 37129
at December 4, 2010 08:27 by rc2789


Initial Code
<?php 
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 );
}
?>

Initial URL

                                

Initial Description

                                

Initial Title
Wordpress: remove backslashes

Initial Tags
textmate, wordpress

Initial Language
Other