Support » Plugin: Simple Social - Sharing Widgets & Icons » [Plugin: Simple Social – Sharing Widgets & Icons] Title problems with quotes
6 years, 4 months ago
This is not the only plugin affected by this..
I just did a test on reddit and the double quotes were converted to & # 8220;.
The titles should be HTML sanitized.
It’s more than just quotes. wptexturize should be disabled on the titles if people want to be able to post to most social networks without having strange characters showing up in the titles.
The solution would be to hook into some function that would restore the normal characters or disable the filters by providing an option in the admin area.
The solution is to use mb_decode_numericentity
I have had the same problem. I don’t think I’ll have too much problem editing the widget, but what piece of code should mb_decode_numericentity replace?
I think I’ve solved the problem. There is a code error in Simple Social. Here’s how you fix it.
1. Go to your plug-in editor and load the following file:
2. Then go to line 12 and change the following statement from this:
$simplesocial_title = urlencode(get_the_title($post->ID) )
$simplesocial_title = urldecode(get_the_title($post->ID) )
3. Update the file and you’re done
*Note Thanks to Google I found out that the command urlENcode replaces spaces, quotes, etc., with +’s and %xx’s. The command you need to get rid of that stuff is urlDEcode.
5 years, 9 months ago
I changed urlencode by urldecode and now it can’t get the title.