oAuth Twitter Feed for Developers - Version 2.2.1

Version Description

  • Grah! Fixes a fairly major issue where if not loading from a cache, the tweet cache is an object, rather than an array. This should be configurable (maybe in 2.3), but for now - fix it.
Download this release

Release Info

Developer stormuk
Plugin Icon wp plugin oAuth Twitter Feed for Developers
Version 2.2.1
Comparing to
See all releases

Code changes from version 2.2.0 to 2.2.1

README.md CHANGED
@@ -60,7 +60,7 @@ Uses Abraham Williams's Twitter OAuth class.
60
  About
61
  =====
62
 
63
- Version: 2.2.0
64
 
65
  Written by Liam Gladdy of Storm Consultancy - <http://www.stormconsultancy.co.uk>
66
 
60
  About
61
  =====
62
 
63
+ Version: 2.2.1
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.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?
1
  <?php
2
  /*
3
+ * Version 2.2.1
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?
oauth/twitteroauth.php CHANGED
@@ -146,7 +146,7 @@ class TwitterOAuth {
146
  function get($url, $parameters = array()) {
147
  $response = $this->oAuthRequest($url, 'GET', $parameters);
148
  if ($this->format === 'json' && $this->decode_json) {
149
- return json_decode($response);
150
  }
151
  return $response;
152
  }
@@ -157,7 +157,7 @@ class TwitterOAuth {
157
  function post($url, $parameters = array()) {
158
  $response = $this->oAuthRequest($url, 'POST', $parameters);
159
  if ($this->format === 'json' && $this->decode_json) {
160
- return json_decode($response);
161
  }
162
  return $response;
163
  }
@@ -168,7 +168,7 @@ class TwitterOAuth {
168
  function delete($url, $parameters = array()) {
169
  $response = $this->oAuthRequest($url, 'DELETE', $parameters);
170
  if ($this->format === 'json' && $this->decode_json) {
171
- return json_decode($response);
172
  }
173
  return $response;
174
  }
146
  function get($url, $parameters = array()) {
147
  $response = $this->oAuthRequest($url, 'GET', $parameters);
148
  if ($this->format === 'json' && $this->decode_json) {
149
+ return json_decode($response,true);
150
  }
151
  return $response;
152
  }
157
  function post($url, $parameters = array()) {
158
  $response = $this->oAuthRequest($url, 'POST', $parameters);
159
  if ($this->format === 'json' && $this->decode_json) {
160
+ return json_decode($response,true);
161
  }
162
  return $response;
163
  }
168
  function delete($url, $parameters = array()) {
169
  $response = $this->oAuthRequest($url, 'DELETE', $parameters);
170
  if ($this->format === 'json' && $this->decode_json) {
171
+ return json_decode($response,true);
172
  }
173
  return $response;
174
  }
readme.txt CHANGED
@@ -3,9 +3,9 @@ Contributors: stormuk, lgladdy
3
  Donate link: http://www.stormconsultancy.co.uk/
4
  Tags: twitter, oauth, feed, tweets
5
  Requires at least: 3.4
6
- Tested up to: 3.8
7
- Stable tag: 2.2.0
8
- Version: 2.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.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.2.0 =
104
  * Check if any of our libraries are loaded by other plugins. If so, don't load them and produce a warning in our settings. This will prevent fatal errors when any other plugin uses OAuth or TwitterOAuth.
105
 
@@ -138,4 +141,4 @@ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
138
  * Correct documentation files for inclusion by wordpress
139
 
140
  = 1.0 =
141
- * First version
3
  Donate link: http://www.stormconsultancy.co.uk/
4
  Tags: twitter, oauth, feed, tweets
5
  Requires at least: 3.4
6
+ Tested up to: 4.2
7
+ Stable tag: 2.2.1
8
+ Version: 2.2.1
9
  License: MIT
10
  License URI: http://opensource.org/licenses/MIT
11
 
66
 
67
  == About ==
68
 
69
+ Version: 2.2.1
70
 
71
  Written by Liam Gladdy of Storm Consultancy - <http://www.stormconsultancy.co.uk>
72
 
100
 
101
  == Changelog ==
102
 
103
+ = 2.2.1 =
104
+ * Grah! Fixes a fairly major issue where if not loading from a cache, the tweet cache is an object, rather than an array. This should be configurable (maybe in 2.3), but for now - fix it.
105
+
106
  = 2.2.0 =
107
  * Check if any of our libraries are loaded by other plugins. If so, don't load them and produce a warning in our settings. This will prevent fatal errors when any other plugin uses OAuth or TwitterOAuth.
108
 
141
  * Correct documentation files for inclusion by wordpress
142
 
143
  = 1.0 =
144
+ * First version
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.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.2.1
6
  License: MIT
7
  License URI: http://opensource.org/licenses/MIT
8
  Author: Storm Consultancy (Liam Gladdy)