Rotating Tweets (Twitter widget and shortcode) - Version 0.27

Version Description

Fixes flaw in how flags are handled.

Download this release

Release Info

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

Code changes from version 0.26 to 0.27

Files changed (2) hide show
  1. readme.txt +7 -1
  2. rotatingtweets.php +3 -3
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.26
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.26 =
43
  If there's an error in the twitter feed, this upgrade makes sure the plug-in doesn't cache it and doesn't display it.
44
 
45
  == Changelog ==
 
 
 
46
  = 0.26 =
47
  Stops display and cacheing of non-existent twitter feeds
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.27
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.27 =
43
+ Fixes flaw in how flags are handled.
44
+
45
  = 0.26 =
46
  If there's an error in the twitter feed, this upgrade makes sure the plug-in doesn't cache it and doesn't display it.
47
 
48
  == Changelog ==
49
+ = 0.27 =
50
+ Fixed flaw in how flags are handled.
51
+
52
  = 0.26 =
53
  Stops display and cacheing of non-existent twitter feeds
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='your_twitter_name'], or a widget, with a rotating tweets display
5
- Version: 0.26
6
  Author: Martin Tod
7
  Author URI: http://www.martintod.org.uk
8
  License: GPL2
@@ -158,12 +158,12 @@ function rotatingtweets_get_tweets($tw_screen_name,$tw_include_rts,$tw_exclude_r
158
  # Clear up variables
159
  $check_regex = "%^[A-Za-z0-9_]+$%";
160
  $cache_delay = 120;
161
- if($tw_include_rts = TRUE || $tw_include_rts = 1 || $tw_include_rts = 't'):
162
  $tw_include_rts = 1;
163
  else:
164
  $tw_include_rts = 0;
165
  endif;
166
- if($tw_exclude_replies = TRUE || $tw_exclude_replies = 1 || $tw_exclude_replies = 't'):
167
  $tw_exclude_replies = 1;
168
  else:
169
  $tw_exclude_replies = 0;
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.27
6
  Author: Martin Tod
7
  Author URI: http://www.martintod.org.uk
8
  License: GPL2
158
  # Clear up variables
159
  $check_regex = "%^[A-Za-z0-9_]+$%";
160
  $cache_delay = 120;
161
+ if($tw_include_rts == TRUE || $tw_include_rts == 1 || $tw_include_rts == 't'):
162
  $tw_include_rts = 1;
163
  else:
164
  $tw_include_rts = 0;
165
  endif;
166
+ if($tw_exclude_replies == TRUE || $tw_exclude_replies == 1 || $tw_exclude_replies == 't'):
167
  $tw_exclude_replies = 1;
168
  else:
169
  $tw_exclude_replies = 0;