Rotating Tweets (Twitter widget and shortcode) - Version 0.44

Version Description

Includes fix for the major bug causing crashes when Twitter goes down. Also improved error checking if Twitter has returned an empty value.

=

Download this release

Release Info

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

Code changes from version 0.43 to 0.44

Files changed (2) hide show
  1. readme.txt +6 -3
  2. rotatingtweets.php +2 -2
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,rotator,tweet,tweets
5
  Requires at least: 2.6
6
  Tested up to: 3.4
7
- Stable tag: 0.43
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -40,10 +40,13 @@ But you may just decide to use the 'Rotating Tweets' widget!
40
  In most cases, each use (or "instance") of this plug-in gets data from Twitter every 2 minutes. The exception is when two or more instances share the same settings (screen name etc.), in which case they share the same data rather than each calling it separately.
41
 
42
  == Upgrade notice ==
43
- = 0.43 =
44
  Includes fix for the major bug causing crashes when Twitter goes down. Also improved error checking if Twitter has returned an empty value.
45
 
46
  == Changelog ==
 
 
 
47
  = 0.43 =
48
  Improved error checking if Twitter has returned an empty value
49
 
@@ -81,6 +84,6 @@ Fixed a problem with cacheing
81
  First published version
82
 
83
  == Screenshots ==
84
- 1. This animation is slightly fast, but gives a sense of what you get:
85
  2. You can add rotating tweets to a post like this:
86
  3. Or add them via a widget:
4
  Tags: shortcode,widget,twitter,rotating,rotate,rotator,tweet,tweets
5
  Requires at least: 2.6
6
  Tested up to: 3.4
7
+ Stable tag: 0.44
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
40
  In most cases, each use (or "instance") of this plug-in gets data from Twitter every 2 minutes. The exception is when two or more instances share the same settings (screen name etc.), in which case they share the same data rather than each calling it separately.
41
 
42
  == Upgrade notice ==
43
+ = 0.44 =
44
  Includes fix for the major bug causing crashes when Twitter goes down. Also improved error checking if Twitter has returned an empty value.
45
 
46
  == Changelog ==
47
+ = 0.44 =
48
+ Removes follow button if Twitter has returned an empty value
49
+
50
  = 0.43 =
51
  Improved error checking if Twitter has returned an empty value
52
 
84
  First published version
85
 
86
  == Screenshots ==
87
+ 1. This animation is slightly faster than the default setting, but gives a sense of what you get:
88
  2. You can add rotating tweets to a post like this:
89
  3. Or add them via a widget:
rotatingtweets.php CHANGED
@@ -2,7 +2,7 @@
2
  /*
3
  Plugin Name: Rotating Tweets widget & shortcode
4
  Description: Replaces a shortcode such as [rotatingtweets userid='your_twitter_name'], or a widget, with a rotating tweets display
5
- Version: 0.43
6
  Author: Martin Tod
7
  Author URI: http://www.martintod.org.uk
8
  License: GPL2
@@ -288,7 +288,7 @@ function rotating_tweets_display($json,$tweet_count=5,$show_follow=FALSE,$timeou
288
  endforeach;
289
  endif;
290
  $result .= "\n</div>";
291
- if($show_follow==TRUE):
292
  $result .= "\n<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>";
293
  $script = 'http://platform.twitter.com/widgets.js';
294
  wp_enqueue_script( 'twitter-wjs', $script, FALSE, FALSE, TRUE );
2
  /*
3
  Plugin Name: Rotating Tweets widget & shortcode
4
  Description: Replaces a shortcode such as [rotatingtweets userid='your_twitter_name'], or a widget, with a rotating tweets display
5
+ Version: 0.44
6
  Author: Martin Tod
7
  Author URI: http://www.martintod.org.uk
8
  License: GPL2
288
  endforeach;
289
  endif;
290
  $result .= "\n</div>";
291
+ if($show_follow==TRUE && !empty($user->screen_name)):
292
  $result .= "\n<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>";
293
  $script = 'http://platform.twitter.com/widgets.js';
294
  wp_enqueue_script( 'twitter-wjs', $script, FALSE, FALSE, TRUE );