WordPress.org

Ready to get started?Download WordPress

Forums

Simple Social - Sharing Widgets & Icons
Title problems with quotes (6 posts)

  1. Olivier
    Member
    Posted 3 years 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.

    http://wordpress.org/extend/plugins/simple-social-sharing-widgets-icons/

  2. Olivier
    Member
    Posted 3 years ago #

    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.

  3. Olivier
    Member
    Posted 3 years ago #

    The solution is to use mb_decode_numericentity

  4. tracysbooknook
    Member
    Posted 3 years ago #

    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?

  5. tracysbooknook
    Member
    Posted 3 years ago #

    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:

    simple-social-sharing-widgets-icons/simple-social.php

    2. Then go to line 12 and change the following statement from this:

    $simplesocial_title = urlencode(get_the_title($post->ID) )

    to this:

    $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.

  6. euskalit
    Member
    Posted 3 years ago #

    I changed urlencode by urldecode and now it can't get the title.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic