Version Description
- Further defensive code against twitter abnormalities
Download this release
Release Info
Developer | stormuk |
Plugin | oAuth Twitter Feed for Developers |
Version | 2.0.3 |
Comparing to | |
See all releases |
Code changes from version 2.0.2 to 2.0.3
- README.md +1 -1
- StormTwitter.class.php +7 -2
- readme.txt +6 -3
- 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.3
|
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?
|
@@ -55,7 +55,12 @@ class StormTwitter {
|
|
55 |
$result = $this->oauthGetTweets($screenname,$options);
|
56 |
|
57 |
if (isset($result['errors'])) {
|
58 |
-
|
|
|
|
|
|
|
|
|
|
|
59 |
} else {
|
60 |
return $this->cropTweets($result,$count);
|
61 |
}
|
1 |
<?php
|
2 |
/*
|
3 |
+
* Version 2.0.3
|
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?
|
55 |
$result = $this->oauthGetTweets($screenname,$options);
|
56 |
|
57 |
if (isset($result['errors'])) {
|
58 |
+
if (is_array($results) && isset($result['errors'][0]) && isset($result['errors'][0]['message'])) {
|
59 |
+
$last_error = $result['errors'][0]['message'];
|
60 |
+
} else {
|
61 |
+
$last_error = $result['errors'];
|
62 |
+
}
|
63 |
+
return array('error'=>'Twitter said: '.$last_error);
|
64 |
} else {
|
65 |
return $this->cropTweets($result,$count);
|
66 |
}
|
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,6 +100,9 @@ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
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.
|
4 |
Tags: twitter, oauth, feed, tweets
|
5 |
Requires at least: 3.4
|
6 |
Tested up to: 3.5
|
7 |
+
Stable tag: 2.0.3
|
8 |
+
Version: 2.0.3
|
9 |
License: MIT
|
10 |
License URI: http://opensource.org/licenses/MIT
|
11 |
|
66 |
|
67 |
== About ==
|
68 |
|
69 |
+
Version: 2.0.3
|
70 |
|
71 |
Written by Liam Gladdy of Storm Consultancy - <http://www.stormconsultancy.co.uk>
|
72 |
|
100 |
|
101 |
== Changelog ==
|
102 |
|
103 |
+
= 2.0.3 =
|
104 |
+
* Further defensive code against twitter abnormalities
|
105 |
+
|
106 |
= 2.0.2 =
|
107 |
* Be a touch more graceful when Twitter is down or returning invalid data.
|
108 |
* Please make sure twitter is online before you upgrade - The update invalidates your cache and will display an error if twitter is offline.
|
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.3
|
6 |
License: MIT
|
7 |
License URI: http://opensource.org/licenses/MIT
|
8 |
Author: Storm Consultancy (Liam Gladdy)
|