So, after integrating my wordpress with bbpress, a little bug popped up.
Apparently when you typed something like "I'm" it was posted as "I/'m"
Yeah, that was frustrating. So instead of showing:
Here's what I've done!
It would instead display:
Here's what I/'ve done!
So if that happens to your install, here's how to fix it:
This is what i found:
From: http://bbpress.org/forums/topic/slashes-being-added-in-front-of-apostrophes
User: baptiste
Post: Easy fix (hack) in bb-includes/template-functions.php, update this function to look like this:
function get_post_text() {
// $bb_post = bb_get_post( get_post_id( $post_id ) );
// return apply_filters( 'get_post_text', $bb_post->post_text, $bb_post->post_id );global $bb_post;
return stripslashes($bb_post->post_text);
}May be an artifact of the wordpress integration - not sure.
The above did indeed work. But I still looked at the other posts and problems others had.
http://bbpress.org/forums/topic/apostrophe-and-or-quotation-marks-cause-backslash-to-appear
user: arpowers
ok, found the answer wooooooo!
The 'real' reason this wasn't working was....
'magic_quotes_gpc' is set to 'off' on my server (in php.ini)
All these other solutions are band-aids, my hunch is that making sure magic quotes is 'on' is the solution.
user: jackey
Putting "php_value magic_quotes_gpc 1" in my .htaccess file worked for me... for now.
The above also worked. But it turns out that enabling the magi_quotes_gpc might make your server vulnerable to sql injection attacks.
So you hack the bbpress code or modify the .htaccess file (add to it).
Worth noting, someone said that by changing the code as per baptiste's method could corrupt backups you make of sql. Maybe I'll wait for that bridge until I come to it?
Big thanks to chrishajer!