Re: WP Integration – Slashes the root of all evil
Weird. I have magic quotes off. However, I notice that wp-settings adds slashes to EVERY request in wp-settings:
// If already slashed, strip.
if ( get_magic_quotes_gpc() ) {
$_GET = stripslashes_deep($_GET );
$_POST = stripslashes_deep($_POST );
$_COOKIE = stripslashes_deep($_COOKIE);
}
// Escape with wpdb.
$_GET = add_magic_quotes($_GET );
$_POST = add_magic_quotes($_POST );
$_COOKIE = add_magic_quotes($_COOKIE);
$_SERVER = add_magic_quotes($_SERVER);
Is bbpress not expecting this? This might explain the double slashing even if magic quotes is off (I checked my php.ini – it is off)