WordPress.org

Support

Support » Plugins and Hacks » [Resolved] [Plugin: TweetButton] Doesn't work if there is a "%" in the title

[Resolved] [Plugin: TweetButton] Doesn't work if there is a "%" in the title

Viewing 3 replies - 1 through 3 (of 3 total)
  • You can fix it at tweetbutton.php

    change the line
    $button .= ‘&text=’.$title;
    to this
    $button .= ‘&text=’.urlencode($title);

    Well, I see another problems so it’s better forget the first fix

    Put this lines
    $arrIni = array(“%”,”?”,”#”);
    $arrEnd = array(“%25″,”%3f”,”%23″);
    $title = str_replace($arrIni, $arrEnd, $title);
    before
    $button .= ‘&text=’.$title;

    Plugin Author David Davis

    @dcgws

    Hi, just updated the plugin. Have incorporated your fixes.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘[Resolved] [Plugin: TweetButton] Doesn't work if there is a "%" in the title’ is closed to new replies.