WordPress.org

Ready to get started?Download WordPress

Forums

Rotating Tweets (Twitter widget and shortcode)
[resolved] [Plugin: Rotating Tweets widget and shortcode] Widget Missing follow-button ending (2 posts)

  1. jacobp
    Member
    Posted 1 year ago #

    Hi -

    Very nice plugin. I noticed that the widget is missing the ending </div> in the follow-button code. Here is a patch:

    --- rotatingtweets.php  2012-05-29 22:30:19.427190853 -0600
    +++ rotatingtweets-jacobp.php   2012-05-29 22:29:41.132278958 -0600
    @@ -244,7 +244,7 @@
            endforeach;^M
            $result .= "</div>\n";^M
            if($show_follow==TRUE):^M
    -               $result .= "<div class='follow-button'><a href='http://twitter.com/".$user->screen_name."' class='twitter-follow-button' title='Follow @".$user->screen_name."'>@".$user->screen_name."</a>";^M
    +               $result .= "<div class='follow-button'><a href='http://twitter.com/".$user->screen_name."' class='twitter-follow-button' title='Follow @".$user->screen_name."'>@".$user->screen_name."</a></div>";^M
                    $script = 'http://platform.twitter.com/widgets.js';^M
                    wp_enqueue_script( 'twitter-wjs', $script, FALSE, FALSE, TRUE );^M
            endif;^M

    http://wordpress.org/extend/plugins/rotatingtweets/

  2. Martin Tod
    Member
    Plugin Author

    Posted 1 year ago #

    Many thanks for spotting this.

    Now fixed (I hope).

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.