could be a language setting thing have you double checked that?
Yup, that was one of the first things I checked. It’s set to ‘en’, charset is “utf-8”
the only one that looks wrong to me is the last entry the earlier entries appear correct.
TurtleBoy wrote a new post, โSon Of Rambowโ (2007)
Yes, all of the quotes within the activity header are straight quotes. However, the quotes within the activity body are smart quotes.
*edit*
Correction, the activity header’s quotes are smart quotes and are still being parsed correctly. They render both the 8820 and 8821 on either side of the quote. However, in the activity’s body it’s spitting out two 8821s…
That’s kind of messed up.
Hmm.. do you know how to use MySQL? If so, looking up one of those activities in the DB table (wp_bp_activity) and seeing what the quote mark is written us, would be helpful.
The content: \”Testing quotes again\”
The action: “Son Of Rambow” (2007)
Guess I was right initially. The activity header is without smart quotes ๐
Hi guys,
you can try to deactivate the appropriate filter concerning the place who the unwanted output shows.
You have in each BP folder a filter file where all the existing active filters are listed.
Once you found one who concern your situation, simply deactivate it.
Open your child theme functions.php, copy in the filter taken from one of the above file and change the word add_filter to remove_filter
bp-messages/bp-messages-filters.php
bp-activity/bp-activity-filters.php
etc
Aha! You’re a genius! I didn’t realize there were so many filter files. I was only looking in the functions.php xD
Instead of removing the filters completely, I decided to go with a replace because some people freak out when their em-dashes don’t look how they should ๐ In case anyone else ever has this problem, here’s what I did to resolve it:
`function removesmartquotes($content) {
$content = str_replace(‘&# 8220;’, ‘& quot;’, $content);
$content = str_replace(‘&# 8221;’, ‘& quot;’, $content);
$content = str_replace(‘&# 8216;’, ‘&# 39;’, $content);
$content = str_replace(‘&# 8217;’, ‘&# 39;’, $content);
return $content;
}
add_filter(‘the_content’, ‘removesmartquotes’);
add_filter( ‘bp_get_activity_action’, ‘removesmartquotes’);
add_filter( ‘bp_get_activity_content_body’, ‘removesmartquotes’);
add_filter( ‘bp_get_activity_content’, ‘removesmartquotes’);
add_filter( ‘bp_get_activity_parent_content’, ‘removesmartquotes’);
add_filter( ‘bp_get_activity_latest_update’, ‘removesmartquotes’);
add_filter( ‘bp_get_activity_latest_update_excerpt’, ‘removesmartquotes’);
add_filter( ‘bp_get_message_notice_subject’, ‘removesmartquotes’);
add_filter( ‘bp_get_message_notice_text’, ‘removesmartquotes’);
add_filter( ‘bp_get_message_thread_subject’, ‘removesmartquotes’);
add_filter( ‘bp_get_message_thread_excerpt’, ‘removesmartquotes’);
add_filter( ‘bp_get_the_thread_message_content’, ‘removesmartquotes’);`
Important: I added a space between the &# and 8220/21 as well as & quot because they were turning into real quotes in the final post ๐ So if anyone uses this, make sure to remove the spaces.
Thanks a bunch to the both of you. I wouldn’t have figured it out with your help.
I also noticed that the left curly quote was not correct in the activity stream, and curly quotes can cause other problems. To remove them I added the following to my functions.php in my child theme:
remove_filter('bp_get_activity_content_body', 'wptexturize');