Version Description
- Be a touch more graceful when Twitter is down or returning invalid data.
- Please make sure twitter is online before you upgrade - The update invalidates your cache and will display an error if twitter is offline.
Download this release
Release Info
Developer | stormuk |
Plugin | oAuth Twitter Feed for Developers |
Version | 2.0.2 |
Comparing to | |
See all releases |
Code changes from version 2.0.1 to 2.0.2
- README.md +1 -1
- StormTwitter.class.php +8 -3
- readme.txt +9 -4
- twitter-feed-for-developers.php +1 -1
README.md
CHANGED
@@ -60,7 +60,7 @@ Uses Abraham Williams's Twitter OAuth class.
|
|
60 |
About
|
61 |
=====
|
62 |
|
63 |
-
Version: 2.0.
|
64 |
|
65 |
Written by Liam Gladdy of Storm Consultancy - <http://www.stormconsultancy.co.uk>
|
66 |
|
60 |
About
|
61 |
=====
|
62 |
|
63 |
+
Version: 2.0.2
|
64 |
|
65 |
Written by Liam Gladdy of Storm Consultancy - <http://www.stormconsultancy.co.uk>
|
66 |
|
StormTwitter.class.php
CHANGED
@@ -1,6 +1,6 @@
|
|
1 |
<?php
|
2 |
/*
|
3 |
-
* Version 2.0.
|
4 |
* The base class for the storm twitter feed for developers.
|
5 |
* This class provides all the things needed for the wordpress plugin, but in theory means you don't need to use it with wordpress.
|
6 |
* What could go wrong?
|
@@ -144,8 +144,13 @@ class StormTwitter {
|
|
144 |
$file = $this->getCacheLocation();
|
145 |
file_put_contents($file,json_encode($cache));
|
146 |
} else {
|
147 |
-
$
|
148 |
-
|
|
|
|
|
|
|
|
|
|
|
149 |
}
|
150 |
|
151 |
return $result;
|
1 |
<?php
|
2 |
/*
|
3 |
+
* Version 2.0.2
|
4 |
* The base class for the storm twitter feed for developers.
|
5 |
* This class provides all the things needed for the wordpress plugin, but in theory means you don't need to use it with wordpress.
|
6 |
* What could go wrong?
|
144 |
$file = $this->getCacheLocation();
|
145 |
file_put_contents($file,json_encode($cache));
|
146 |
} else {
|
147 |
+
if (is_array($results) && isset($result['errors'][0]) && isset($result['errors'][0]['message'])) {
|
148 |
+
$last_error = '['.date('r').'] Twitter error: '.$result['errors'][0]['message'];
|
149 |
+
$this->st_last_error = $last_error;
|
150 |
+
} else {
|
151 |
+
$last_error = '['.date('r').'] Twitter returned an invalid response. It is probably down.';
|
152 |
+
$this->st_last_error = $last_error;
|
153 |
+
}
|
154 |
}
|
155 |
|
156 |
return $result;
|
readme.txt
CHANGED
@@ -4,8 +4,8 @@ Donate link: http://www.stormconsultancy.co.uk/
|
|
4 |
Tags: twitter, oauth, feed, tweets
|
5 |
Requires at least: 3.4
|
6 |
Tested up to: 3.5
|
7 |
-
Stable tag: 2.0.
|
8 |
-
Version: 2.0.
|
9 |
License: MIT
|
10 |
License URI: http://opensource.org/licenses/MIT
|
11 |
|
@@ -66,7 +66,7 @@ Uses Abraham Williams's Twitter OAuth class.
|
|
66 |
|
67 |
== About ==
|
68 |
|
69 |
-
Version: 2.0.
|
70 |
|
71 |
Written by Liam Gladdy of Storm Consultancy - <http://www.stormconsultancy.co.uk>
|
72 |
|
@@ -100,8 +100,13 @@ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
100 |
|
101 |
== Changelog ==
|
102 |
|
|
|
|
|
|
|
|
|
103 |
= 2.0.1 =
|
104 |
-
*
|
|
|
105 |
|
106 |
= 2.0.0 =
|
107 |
* Support multiple screennames
|
4 |
Tags: twitter, oauth, feed, tweets
|
5 |
Requires at least: 3.4
|
6 |
Tested up to: 3.5
|
7 |
+
Stable tag: 2.0.2
|
8 |
+
Version: 2.0.2
|
9 |
License: MIT
|
10 |
License URI: http://opensource.org/licenses/MIT
|
11 |
|
66 |
|
67 |
== About ==
|
68 |
|
69 |
+
Version: 2.0.2
|
70 |
|
71 |
Written by Liam Gladdy of Storm Consultancy - <http://www.stormconsultancy.co.uk>
|
72 |
|
100 |
|
101 |
== Changelog ==
|
102 |
|
103 |
+
= 2.0.2 =
|
104 |
+
* Be a touch more graceful when Twitter is down or returning invalid data.
|
105 |
+
* Please make sure twitter is online before you upgrade - The update invalidates your cache and will display an error if twitter is offline.
|
106 |
+
|
107 |
= 2.0.1 =
|
108 |
+
* Please make sure twitter is online before you upgrade - The update invalidates your cache and will display an error if twitter is offline.
|
109 |
+
* Fix an issue with upgrading from 1.0.6, which turned out to not be an issue at all, and is actually because twitter went down and scared me very much.
|
110 |
|
111 |
= 2.0.0 =
|
112 |
* Support multiple screennames
|
twitter-feed-for-developers.php
CHANGED
@@ -2,7 +2,7 @@
|
|
2 |
/*
|
3 |
Plugin Name: oAuth Twitter Feed for Developers
|
4 |
Description: Twitter API 1.1 compliant plugin that provides a function to get an array of tweets from the auth'd users Twitter feed for use in themes.
|
5 |
-
Version: 2.0.
|
6 |
License: MIT
|
7 |
License URI: http://opensource.org/licenses/MIT
|
8 |
Author: Storm Consultancy (Liam Gladdy)
|
2 |
/*
|
3 |
Plugin Name: oAuth Twitter Feed for Developers
|
4 |
Description: Twitter API 1.1 compliant plugin that provides a function to get an array of tweets from the auth'd users Twitter feed for use in themes.
|
5 |
+
Version: 2.0.2
|
6 |
License: MIT
|
7 |
License URI: http://opensource.org/licenses/MIT
|
8 |
Author: Storm Consultancy (Liam Gladdy)
|