WordPress.org

Ready to get started?Download WordPress

Forums

Really simple Facebook Twitter share buttons
[resolved] W3C validation - Whitespace in query component (3 posts)

  1. laserjobs
    Member
    Posted 10 months ago #

    I think I am getting thrown this error on W3C because the description in the URL is plain text with spaces. It does not look correct for pinterest either (http://developers.pinterest.com/pin_it/)

    Line 406
    $appended_url = '?url='.rawurlencode($link).'&media='.rawurlencode($media).'&description='.strip_tags($title);

    throws out this in the URL:
    description=Next stop: Pinterest

    Should it be:
    description=Next%20stop%3A%20Pinterest

    Thanks!

    http://wordpress.org/plugins/really-simple-facebook-twitter-share-buttons/

  2. laserjobs
    Member
    Posted 10 months ago #

    I replaced Line 406
    $appended_url = '?url='.rawurlencode($link).'&media='.rawurlencode($media).'&description='.strip_tags($title);

    with
    $appended_url = '?url='.rawurlencode($link).'&media='.rawurlencode($media).'&description='.rawurlencode($title);

    It seems to be working for me without the errors now

  3. whiletrue
    Member
    Plugin Author

    Posted 10 months ago #

    Hi,
    thanks again for noticing it. I'm including your fix (with rawurlencode around the strip_tags function) in the 2.11.2 release.

Reply

You must log in to post.

About this Plugin

About this Topic

Tags

No tags yet.