Rotating Tweets (Twitter widget and shortcode) - Version 1.7.7

Version Description

  • Important upgrade that fixes caching bug. Also addition of Italian!

=

Download this release

Release Info

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

Code changes from version 1.7.6 to 1.7.7

Files changed (2) hide show
  1. readme.txt +5 -2
  2. rotatingtweets.php +6 -1
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,animation,jquery,jquery cycle,cycle,multilingual,responsive
5
  Requires at least: 2.6
6
  Tested up to: 4.1
7
- Stable tag: 1.7.6
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -179,10 +179,13 @@ into your CSS - changing `123px;` to the width you're aiming at - either via put
179
  You can do this by going to the `rotatingtweets/css` directory and renaming `rotatingtweets-sample.css` to `rotatingtweets.css` and putting it in the `wp-content/uploads/` directory. This displays a Twitter bird to the left of your tweets. Any CSS you put into `rotatingtweets.css` won't be overwritten when the plug-in is upgraded to the latest version.
180
 
181
  == Upgrade notice ==
182
- = 1.7.6 =
183
  * Important upgrade that fixes caching bug. Also addition of Italian!
184
 
185
  == Changelog ==
 
 
 
186
  = 1.7.6 =
187
  * Addition of Italian language
188
  * Fixes transient-based caching - many thanks to to [jensnilsson](https://wordpress.org/support/profile/jensnilsson) and [Moondrop](https://wordpress.org/support/profile/moondrop) for highlighting the solution [here](https://wordpress.org/support/topic/no-tweets-available-mostly?replies=30).
4
  Tags: shortcode,widget,twitter,rotating,rotate,rotator,tweet,tweets,animation,jquery,jquery cycle,cycle,multilingual,responsive
5
  Requires at least: 2.6
6
  Tested up to: 4.1
7
+ Stable tag: 1.7.7
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
179
  You can do this by going to the `rotatingtweets/css` directory and renaming `rotatingtweets-sample.css` to `rotatingtweets.css` and putting it in the `wp-content/uploads/` directory. This displays a Twitter bird to the left of your tweets. Any CSS you put into `rotatingtweets.css` won't be overwritten when the plug-in is upgraded to the latest version.
180
 
181
  == Upgrade notice ==
182
+ = 1.7.7 =
183
  * Important upgrade that fixes caching bug. Also addition of Italian!
184
 
185
  == Changelog ==
186
+ = 1.7.7 =
187
+ * Better handling transients on transition from old version to new
188
+
189
  = 1.7.6 =
190
  * Addition of Italian language
191
  * Fixes transient-based caching - many thanks to to [jensnilsson](https://wordpress.org/support/profile/jensnilsson) and [Moondrop](https://wordpress.org/support/profile/moondrop) for highlighting the solution [here](https://wordpress.org/support/topic/no-tweets-available-mostly?replies=30).
rotatingtweets.php CHANGED
@@ -435,7 +435,12 @@ function rotatingtweets_get_transient($transient) {
435
  if(!$return):
436
  return $return;
437
  else:
438
- return unserialize(base64_decode($return));
 
 
 
 
 
439
  endif;
440
  }
441
 
435
  if(!$return):
436
  return $return;
437
  else:
438
+ $data = base64_decode($return);
439
+ if (is_serialized($data)):
440
+ return @unserialize($data);
441
+ else:
442
+ return $return;
443
+ endif;
444
  endif;
445
  }
446