Rotating Tweets (Twitter widget and shortcode) - Version 0.21

Version Description

Fixed a missing </div> in the follow-button code

Download this release

Release Info

Developer mpntod
Plugin Icon wp plugin Rotating Tweets (Twitter widget and shortcode)
Version 0.21
Comparing to
See all releases

Code changes from version 0.2 to 0.21

Files changed (2) hide show
  1. readme.txt +7 -1
  2. rotatingtweets.php +3 -5
readme.txt CHANGED
@@ -4,7 +4,7 @@ Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_i
4
  Tags: shortcode,widget,twitter,rotating,rotate
5
  Requires at least: 2.6
6
  Tested up to: 3.3.2
7
- Stable tag: 0.2
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -39,10 +39,16 @@ But you may just decide to use the 'Rotating Tweets' widget!
39
  Not yet. Why not ask one?
40
 
41
  == Upgrade notice ==
 
 
 
42
  = 0.2 =
43
  Fixes a serious problem with cacheing of different feeds
44
 
45
  == Changelog ==
 
 
 
46
  = 0.2 =
47
  Fixed a problem with cacheing
48
 
4
  Tags: shortcode,widget,twitter,rotating,rotate
5
  Requires at least: 2.6
6
  Tested up to: 3.3.2
7
+ Stable tag: 0.21
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
39
  Not yet. Why not ask one?
40
 
41
  == Upgrade notice ==
42
+ = 0.21 =
43
+ Fixed a missing `</div>` in the follow-button code
44
+
45
  = 0.2 =
46
  Fixes a serious problem with cacheing of different feeds
47
 
48
  == Changelog ==
49
+ = 0.21 =
50
+ Replaced a missing `</div>` in the follow-button code (with thanks to [jacobp](http://wordpress.org/support/profile/jacobp) for spotting it and suggesting a fix)
51
+
52
  = 0.2 =
53
  Fixed a problem with cacheing
54
 
rotatingtweets.php CHANGED
@@ -2,7 +2,7 @@
2
  /*
3
  Plugin Name: Rotating Tweets widget & shortcode
4
  Description: Replaces a shortcode such as [rotatingtweets userid='mpntod'], or a widget, with a rotating tweets display
5
- Version: 0.2
6
  Author: Martin Tod
7
  Author URI: http://www.martintod.org.uk
8
  License: GPL2
@@ -139,7 +139,6 @@ function rotatingtweets_display( $atts, $content=null, $code="" ) {
139
  $exclude_replies :: [boolean] exclude replies - optional
140
  $tweet_count :: [integer] number of tweets to show - optional - default 5
141
  $show_follow :: [boolean] show follow button
142
- $debug :: [boolean] Show extra variables
143
  */
144
  extract( shortcode_atts( array(
145
  'screen_name' => 'twitter',
@@ -147,10 +146,9 @@ function rotatingtweets_display( $atts, $content=null, $code="" ) {
147
  'exclude_replies' => FALSE,
148
  'tweet_count' => 5,
149
  'show_follow' => FALSE,
150
- 'debug' => FALSE
151
  ), $atts ) );
152
  $tweets = rotatingtweets_get_tweets($screen_name,$include_rts,$exclude_replies,$tweet_count);
153
- $returnstring = rotating_tweets_display($tweets,$tweet_count,$show_follow,FALSE,$debug);
154
  return $returnstring;
155
  }
156
  add_shortcode( 'rotatingtweets', 'rotatingtweets_display' );
@@ -246,7 +244,7 @@ function rotating_tweets_display($json,$tweet_count=5,$show_follow=FALSE,$print=
246
  endforeach;
247
  $result .= "</div>\n";
248
  if($show_follow==TRUE):
249
- $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>";
250
  $script = 'http://platform.twitter.com/widgets.js';
251
  wp_enqueue_script( 'twitter-wjs', $script, FALSE, FALSE, TRUE );
252
  endif;
2
  /*
3
  Plugin Name: Rotating Tweets widget & shortcode
4
  Description: Replaces a shortcode such as [rotatingtweets userid='mpntod'], or a widget, with a rotating tweets display
5
+ Version: 0.21
6
  Author: Martin Tod
7
  Author URI: http://www.martintod.org.uk
8
  License: GPL2
139
  $exclude_replies :: [boolean] exclude replies - optional
140
  $tweet_count :: [integer] number of tweets to show - optional - default 5
141
  $show_follow :: [boolean] show follow button
 
142
  */
143
  extract( shortcode_atts( array(
144
  'screen_name' => 'twitter',
146
  'exclude_replies' => FALSE,
147
  'tweet_count' => 5,
148
  'show_follow' => FALSE,
 
149
  ), $atts ) );
150
  $tweets = rotatingtweets_get_tweets($screen_name,$include_rts,$exclude_replies,$tweet_count);
151
+ $returnstring = rotating_tweets_display($tweets,$tweet_count,$show_follow,FALSE);
152
  return $returnstring;
153
  }
154
  add_shortcode( 'rotatingtweets', 'rotatingtweets_display' );
244
  endforeach;
245
  $result .= "</div>\n";
246
  if($show_follow==TRUE):
247
+ $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>";
248
  $script = 'http://platform.twitter.com/widgets.js';
249
  wp_enqueue_script( 'twitter-wjs', $script, FALSE, FALSE, TRUE );
250
  endif;