Rotating Tweets (Twitter widget and shortcode) - Version 0.28

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.28
Comparing to
See all releases

Code changes from version 0.27 to 0.28

readme.txt CHANGED
@@ -1,10 +1,10 @@
1
  === Rotating Tweets widget and shortcode ===
2
  Contributors: mpntod
3
  Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=9XCNM4QSVHYT8
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
 
@@ -35,17 +35,19 @@ Possible variables for the shortcode include:
35
  But you may just decide to use the 'Rotating Tweets' widget!
36
 
37
  == Frequently Asked Questions ==
38
- = Are there any frequently asked questions? =
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
 
@@ -65,6 +67,6 @@ Fixed a problem with cacheing
65
  First published version
66
 
67
  == Screenshots ==
68
- 1. You can add rotating tweets to a post like this:
69
- 2. Or add them via a widget:
70
- 3. This animation is slightly fast, but gives a sense of what you get:
1
  === Rotating Tweets widget and shortcode ===
2
  Contributors: mpntod
3
  Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=9XCNM4QSVHYT8
4
+ Tags: shortcode,widget,twitter,rotating,rotate,rotator,tweet,social media
5
  Requires at least: 2.6
6
  Tested up to: 3.3.2
7
+ Stable tag: 0.28
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
35
  But you may just decide to use the 'Rotating Tweets' widget!
36
 
37
  == Frequently Asked Questions ==
38
+ = How often does the plug-in call Twitter =
39
+ In most cases, each use (or "instance") of this plug-in gets data from Twitter every 2 minutes.
40
+
41
+ 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.
42
 
43
  == Upgrade notice ==
44
+ = 0.28 =
45
  Fixes flaw in how flags are handled.
46
 
 
 
 
47
  == Changelog ==
48
+ = 0.28 =
49
+ Properly fixes flaw in how flags are handled.
50
+
51
  = 0.27 =
52
  Fixed flaw in how flags are handled.
53
 
67
  First published version
68
 
69
  == Screenshots ==
70
+ 1. This animation is slightly fast, but gives a sense of what you get:
71
+ 2. You can add rotating tweets to a post like this:
72
+ 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.27
6
  Author: Martin Tod
7
  Author URI: http://www.martintod.org.uk
8
  License: GPL2
@@ -158,16 +158,8 @@ 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;
170
- endif;
171
  $tw_tweet_count = max(1,intval($tw_tweet_count));
172
  # Get the option strong
173
  $stringname = $tw_screen_name.$tw_include_rts.$tw_exclude_replies;
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.28
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 != 1) $tw_include_rts = 0;
162
+ if($tw_exclude_replies != 1) $tw_exclude_replies = 0;
 
 
 
 
 
 
 
 
163
  $tw_tweet_count = max(1,intval($tw_tweet_count));
164
  # Get the option strong
165
  $stringname = $tw_screen_name.$tw_include_rts.$tw_exclude_replies;
screenshot-3.gif → screenshot-1.gif RENAMED
File without changes
screenshot-1.png DELETED
Binary file
screenshot-2.png CHANGED
Binary file
screenshot-3.png ADDED
Binary file