Version Description
- Updated twitter logo
- Removed line break before time link and use css instead
- Fixed some undefined array key and undefined notices
- Fix for redeclaring OAuthException class
Download this release
Release Info
Developer | grimmdude |
Plugin | Recent Tweets Widget |
Version | 1.6.5 |
Comparing to | |
See all releases |
Code changes from version 1.6.4 to 1.6.5
- assets/tweet.png +0 -0
- readme.txt +8 -2
- recent-tweets.php +1 -1
- settings.php +1 -1
- tp_twitter_plugin.css +1 -0
- twitteroauth.php +4 -2
- widget.php +2 -2
assets/tweet.png
CHANGED
Binary file
|
readme.txt
CHANGED
@@ -2,8 +2,8 @@
|
|
2 |
Contributors: noahkagan
|
3 |
Tags: recent tweets, twitter widget, twitter api v1.1, cache, twitter, tweets, social media
|
4 |
Requires at least: 3.4.1
|
5 |
-
Tested up to: 4.
|
6 |
-
Stable tag: 1.6.
|
7 |
License: GPLv2 or later
|
8 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
9 |
|
@@ -38,6 +38,12 @@ You will need to visit [https://apps.twitter.com/](https://apps.twitter.com/ "Tw
|
|
38 |
|
39 |
== Changelog ==
|
40 |
|
|
|
|
|
|
|
|
|
|
|
|
|
41 |
= 1.6.4 =
|
42 |
* Fix widget for WP 4.3
|
43 |
|
2 |
Contributors: noahkagan
|
3 |
Tags: recent tweets, twitter widget, twitter api v1.1, cache, twitter, tweets, social media
|
4 |
Requires at least: 3.4.1
|
5 |
+
Tested up to: 4.5
|
6 |
+
Stable tag: 1.6.5
|
7 |
License: GPLv2 or later
|
8 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
9 |
|
38 |
|
39 |
== Changelog ==
|
40 |
|
41 |
+
= 1.6.5 =
|
42 |
+
* Updated twitter logo
|
43 |
+
* Removed line break before time link and use css instead
|
44 |
+
* Fixed some undefined array key and undefined notices
|
45 |
+
* Fix for redeclaring OAuthException class
|
46 |
+
|
47 |
= 1.6.4 =
|
48 |
* Fix widget for WP 4.3
|
49 |
|
recent-tweets.php
CHANGED
@@ -4,7 +4,7 @@
|
|
4 |
Plugin Name: Recent Tweets Widget
|
5 |
Plugin URI: http://wordpress.org/extend/plugins/recent-tweets-widget/
|
6 |
Description: Recent Tweets Widget plugin for Twitter API v1.1 with Cache. It uses the new Twitter API v1.1 and stores tweets in the cache. It means that it will read status messages from your database and it doesn't query Twitter.com for every page load so you won't be rate limited. You can set how often you want to update the cache.
|
7 |
-
Version: 1.6.
|
8 |
Author: Noah Kagan
|
9 |
Author URI: http://sumome.com
|
10 |
*/
|
4 |
Plugin Name: Recent Tweets Widget
|
5 |
Plugin URI: http://wordpress.org/extend/plugins/recent-tweets-widget/
|
6 |
Description: Recent Tweets Widget plugin for Twitter API v1.1 with Cache. It uses the new Twitter API v1.1 and stores tweets in the cache. It means that it will read status messages from your database and it doesn't query Twitter.com for every page load so you won't be rate limited. You can set how often you want to update the cache.
|
7 |
+
Version: 1.6.5
|
8 |
Author: Noah Kagan
|
9 |
Author URI: http://sumome.com
|
10 |
*/
|
settings.php
CHANGED
@@ -2,7 +2,7 @@
|
|
2 |
add_thickbox();
|
3 |
$tp_twitter_plugin_options = get_option('tp_twitter_plugin_options');
|
4 |
|
5 |
-
if ($_GET['tp_twitter_global_notification'] == 0) {
|
6 |
update_option('tp_twitter_global_notification', 0);
|
7 |
}
|
8 |
?>
|
2 |
add_thickbox();
|
3 |
$tp_twitter_plugin_options = get_option('tp_twitter_plugin_options');
|
4 |
|
5 |
+
if (array_key_exists('tp_twitter_global_notification', $_GET) && $_GET['tp_twitter_global_notification'] == 0) {
|
6 |
update_option('tp_twitter_global_notification', 0);
|
7 |
}
|
8 |
?>
|
tp_twitter_plugin.css
CHANGED
@@ -22,6 +22,7 @@
|
|
22 |
}
|
23 |
|
24 |
.tp_recent_tweets .twitter_time {
|
|
|
25 |
color: #999;
|
26 |
font-size: 12px;
|
27 |
font-style: italic;
|
22 |
}
|
23 |
|
24 |
.tp_recent_tweets .twitter_time {
|
25 |
+
display:block;
|
26 |
color: #999;
|
27 |
font-size: 12px;
|
28 |
font-style: italic;
|
twitteroauth.php
CHANGED
@@ -10,8 +10,10 @@
|
|
10 |
|
11 |
/* Generic exception class
|
12 |
*/
|
13 |
-
|
14 |
-
|
|
|
|
|
15 |
}
|
16 |
|
17 |
class OAuthConsumer {
|
10 |
|
11 |
/* Generic exception class
|
12 |
*/
|
13 |
+
if ( ! class_exists('OAuthException')) {
|
14 |
+
class OAuthException extends Exception {
|
15 |
+
// pass
|
16 |
+
}
|
17 |
}
|
18 |
|
19 |
class OAuthConsumer {
|
widget.php
CHANGED
@@ -93,7 +93,7 @@
|
|
93 |
if(empty($tweet['status_id'])){ $tweet['status_id'] = ''; }
|
94 |
if(empty($tweet['created_at'])){ $tweet['created_at'] = ''; }
|
95 |
|
96 |
-
print '<li><span>'.tp_convert_links($tweet['text']).'</span><
|
97 |
if($fctr == $instance['tweetstoshow']){ break; }
|
98 |
$fctr++;
|
99 |
}
|
@@ -168,7 +168,7 @@
|
|
168 |
<p><label>' . __('Tweets to display:','tp_tweets') . '</label>
|
169 |
<select type="text" name="'.$this->get_field_name( 'tweetstoshow' ).'" id="'.$this->get_field_id( 'tweetstoshow' ).'">';
|
170 |
$i = 1;
|
171 |
-
for(i; $i <= 10; $i++){
|
172 |
echo '<option value="'.$i.'"'; if($instance['tweetstoshow'] == $i){ echo ' selected="selected"'; } echo '>'.$i.'</option>';
|
173 |
}
|
174 |
echo '
|
93 |
if(empty($tweet['status_id'])){ $tweet['status_id'] = ''; }
|
94 |
if(empty($tweet['created_at'])){ $tweet['created_at'] = ''; }
|
95 |
|
96 |
+
print '<li><span>'.tp_convert_links($tweet['text']).'</span><a class="twitter_time" target="_blank" href="http://twitter.com/'.$instance['username'].'/statuses/'.$tweet['status_id'].'">'.tp_relative_time($tweet['created_at']).'</a></li>';
|
97 |
if($fctr == $instance['tweetstoshow']){ break; }
|
98 |
$fctr++;
|
99 |
}
|
168 |
<p><label>' . __('Tweets to display:','tp_tweets') . '</label>
|
169 |
<select type="text" name="'.$this->get_field_name( 'tweetstoshow' ).'" id="'.$this->get_field_id( 'tweetstoshow' ).'">';
|
170 |
$i = 1;
|
171 |
+
for($i; $i <= 10; $i++){
|
172 |
echo '<option value="'.$i.'"'; if($instance['tweetstoshow'] == $i){ echo ' selected="selected"'; } echo '>'.$i.'</option>';
|
173 |
}
|
174 |
echo '
|