WP 3.0 / BBpress “Bechet” version 1.0.2
Inside /wp-includes/load.php I found this code:
// If already slashed, strip.
if ( get_magic_quotes_gpc() ) {
$_GET = stripslashes_deep( $_GET );
$_POST = stripslashes_deep( $_POST );
$_COOKIE = stripslashes_deep( $_COOKIE );
}
So I made a BBpress plugin that (so far) works for me.
/bbpress/my-plugins/stripslashes.php
<?php
/*
Plugin Name: Strip Slashes
Plugin URI: http://www.uxtremist.com/
Description: Strips slashes from topics, tags and posts. Sort of.
Author: Adam Braimbridge <adam@uxtremist.com>
Version: 0.1
Author URI: http://www.uxtremist.com/
*/
// Make sure WordPress has been included
if (function_exists('wp_head')) {
$_GET = stripslashes_deep( $_GET );
$_POST = stripslashes_deep( $_POST );
$_COOKIE = stripslashes_deep( $_COOKIE );
}
?>