Version Description
Includes an important upgrade needed for Rotating Tweets to keep working after March 2013. Supports version 1.1 of the Twitter API.
=
Download this release
Release Info
Developer | mpntod |
Plugin | Rotating Tweets (Twitter widget and shortcode) |
Version | 0.707 |
Comparing to | |
See all releases |
Code changes from version 0.706 to 0.707
- readme.txt +5 -2
- rotatingtweets.php +8 -6
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
|
5 |
Requires at least: 2.6
|
6 |
Tested up to: 3.5
|
7 |
-
Stable tag: 0.
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
@@ -82,10 +82,13 @@ In most cases, each use (or "instance") of this plug-in gets data from Twitter e
|
|
82 |
You can do this by going to the `rotatingtweets/css` directory and renaming `yourstyle-sample.css` to `yourstyle.css`. This displays a Twitter bird to the left of your tweets. Any CSS you put into `yourstyle.css` won't be overwritten when the plug-in is upgraded to the latest version.
|
83 |
|
84 |
== Upgrade notice ==
|
85 |
-
= 0.
|
86 |
Includes an important upgrade needed for Rotating Tweets to keep working after March 2013. Supports version 1.1 of the Twitter API.
|
87 |
|
88 |
== Changelog ==
|
|
|
|
|
|
|
89 |
= 0.706 =
|
90 |
Change to JavaScript to improve width handling for tweets.
|
91 |
|
4 |
Tags: shortcode,widget,twitter,rotating,rotate,rotator,tweet,tweets,animation,jquery,jquery cycle,cycle,multilingual
|
5 |
Requires at least: 2.6
|
6 |
Tested up to: 3.5
|
7 |
+
Stable tag: 0.707
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
82 |
You can do this by going to the `rotatingtweets/css` directory and renaming `yourstyle-sample.css` to `yourstyle.css`. This displays a Twitter bird to the left of your tweets. Any CSS you put into `yourstyle.css` won't be overwritten when the plug-in is upgraded to the latest version.
|
83 |
|
84 |
== Upgrade notice ==
|
85 |
+
= 0.707 =
|
86 |
Includes an important upgrade needed for Rotating Tweets to keep working after March 2013. Supports version 1.1 of the Twitter API.
|
87 |
|
88 |
== Changelog ==
|
89 |
+
= 0.707 =
|
90 |
+
Fixes major bug resulting from upgrade to handle Twitter API v 1.1
|
91 |
+
|
92 |
= 0.706 =
|
93 |
Change to JavaScript to improve width handling for tweets.
|
94 |
|
rotatingtweets.php
CHANGED
@@ -2,7 +2,7 @@
|
|
2 |
/*
|
3 |
Plugin Name: Rotating Tweets (Twitter widget & shortcode)
|
4 |
Description: Replaces a shortcode such as [rotatingtweets screen_name='your_twitter_name'], or a widget, with a rotating tweets display
|
5 |
-
Version: 0.
|
6 |
Text Domain: rotatingtweets
|
7 |
Author: Martin Tod
|
8 |
Author URI: http://www.martintod.org.uk
|
@@ -515,11 +515,13 @@ function rotatingtweets_call_twitter_API($command,$options = NULL,$api = NULL )
|
|
515 |
if(WP_DEBUG) echo "<!-- Using version 1 of API - calling string $apicall -->";
|
516 |
$result = wp_remote_request($apicall);
|
517 |
endif;
|
518 |
-
|
519 |
-
|
520 |
-
|
521 |
-
|
522 |
-
|
|
|
|
|
523 |
endif;
|
524 |
return($result);
|
525 |
}
|
2 |
/*
|
3 |
Plugin Name: Rotating Tweets (Twitter widget & shortcode)
|
4 |
Description: Replaces a shortcode such as [rotatingtweets screen_name='your_twitter_name'], or a widget, with a rotating tweets display
|
5 |
+
Version: 0.707
|
6 |
Text Domain: rotatingtweets
|
7 |
Author: Martin Tod
|
8 |
Author URI: http://www.martintod.org.uk
|
515 |
if(WP_DEBUG) echo "<!-- Using version 1 of API - calling string $apicall -->";
|
516 |
$result = wp_remote_request($apicall);
|
517 |
endif;
|
518 |
+
if(!is_wp_error($result)):
|
519 |
+
$data = json_decode($result['body'],true);
|
520 |
+
if(!empty($data['errors'])):
|
521 |
+
update_option('rotatingtweets_api_error',$data['errors']);
|
522 |
+
else:
|
523 |
+
delete_option('rotatingtweets_api_error');
|
524 |
+
endif;
|
525 |
endif;
|
526 |
return($result);
|
527 |
}
|