Version Description
- Fixes display bug where a Tweet contains two copies of the same URL.
=
Download this release
Release Info
Developer | mpntod |
Plugin | Rotating Tweets (Twitter widget and shortcode) |
Version | 1.9.7 |
Comparing to | |
See all releases |
Code changes from version 1.9.6 to 1.9.7
- readme.txt +10 -6
- rotatingtweets.php +3 -1
readme.txt
CHANGED
@@ -4,7 +4,8 @@ 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,responsive,page builder,do not track,dnt
|
5 |
Requires at least: 3.2
|
6 |
Tested up to: 4.9
|
7 |
-
Stable tag: 1.9.
|
|
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
@@ -19,12 +20,12 @@ Twitter widget and shortcode to show your latest tweets one at a time an animate
|
|
19 |
* **Reliable** - keeps showing your latest Tweets even if the Twitter website is down.
|
20 |
* **Customizable** - you decide whose tweets to show, how many to show, whether to include retweets and replies, and whether to show a follow button. You can also decide how quickly the tweets rotate and what type of animation to use.
|
21 |
* **Responsive** - resizes as your page resizes
|
22 |
-
*
|
|
|
23 |
* Replaces [t.co](http://t.co) links with the original link
|
24 |
* Caches the most recent data from Twitter to avoid problems with rate limiting
|
25 |
* Uses [jQuery](http://jquery.com/), [jQuery.Cycle](http://jquery.malsup.com/cycle/) and [jQuery.Cycle2](http://jquery.malsup.com/cycle2/) to produce a nice smooth result.
|
26 |
* Compatible with [W3 Total Cache](/plugins/w3-total-cache/).
|
27 |
-
* Supports Do Not Track (DNT)
|
28 |
* **Multi-lingual** - now set up to be multi-lingual. The Twitter 'follow' button is automatically translated to match your site's language setting [if Twitter has made the appropriate language available](https://developer.twitter.com/en/docs/developer-utilities/supported-languages/api-reference/get-help-languages). Also uses [Wordpress's multi-lingual capability](http://codex.wordpress.org/I18n_for_WordPress_Developers) to enable translation of all the other text used by the plug-in via [language packs](https://translate.wordpress.org/projects/wp-plugins/rotatingtweets).
|
29 |
|
30 |
If you'd like to see what the plug-in looks like in action, you can [see the plug-in working here](http://www.martintod.org.uk/2012/05/29/new-twitter-plugin-to-show-tweets-in-rotation/).
|
@@ -171,7 +172,7 @@ If there is only one copy of `jquery` and of `jquery.cycle` on your page, the be
|
|
171 |
1. Read the diagnostics and look for any problems that relate to JavaScript. This will normally tell you which JavaScript (if any) is having problems.
|
172 |
|
173 |
= Does Rotating Tweets help me support GDPR? =
|
174 |
-
Yes. No user data is collected, stored or sent to Twitter by Rotating Tweets. By default, Rotating Tweets also does not load any JavaScript from Twitter or anywhere else 'off site'. It supports 'do not track' and only loads JavaScript from Twitter needed to display the Twitter Follow button if you choose that option and the user has not set 'do not track' on their browser.
|
175 |
|
176 |
= What can I do if I get the WordPress error code: `http_request_failed - name lookup timed out`? =
|
177 |
Try installing the [Core Control plug-in](/plugins/core-control/) and disabling cURL. You can read more about the problem via [this support page](http://wordpress.org/support/topic/wp-351-wordpress-error-code-http_request_failed-name-lookup-timed-out).
|
@@ -191,10 +192,13 @@ into your CSS - changing `123px;` to the width you're aiming at - either via [ad
|
|
191 |
You can do this by going to the `rotatingtweets/css` directory, opening `rotatingtweets-sample.css` and copying its contents (modifying the link to the bird graphic to match your site) into [additional CSS](https://codex.wordpress.org/CSS#Custom_CSS_in_WordPress) (the preferred approach from Wordpress 4.7 onwards) on the [Appearance Customize Screen](https://codex.wordpress.org/Appearance_Customize_Screen) page. Alternatively rename `rotatingtweets-sample.css` to `rotatingtweets.css` and put it in the `wp-content/uploads/` directory. Or copy the CSS into your own template files. Any of these approaches will display a Twitter bird to the left of your tweets.
|
192 |
|
193 |
== Upgrade notice ==
|
194 |
-
= 1.9.
|
195 |
-
*
|
196 |
|
197 |
== Changelog ==
|
|
|
|
|
|
|
198 |
= 1.9.6 =
|
199 |
* Twitter JavaScript only loads if Follow button is set to be displayed and the user has not set 'Do Not Track'.
|
200 |
|
4 |
Tags: shortcode,widget,twitter,rotating,rotate,rotator,tweet,tweets,animation,jquery,jquery cycle,cycle,multilingual,responsive,page builder,do not track,dnt
|
5 |
Requires at least: 3.2
|
6 |
Tested up to: 4.9
|
7 |
+
Stable tag: 1.9.7
|
8 |
+
Requires PHP: 5.2.4
|
9 |
License: GPLv2 or later
|
10 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
11 |
|
20 |
* **Reliable** - keeps showing your latest Tweets even if the Twitter website is down.
|
21 |
* **Customizable** - you decide whose tweets to show, how many to show, whether to include retweets and replies, and whether to show a follow button. You can also decide how quickly the tweets rotate and what type of animation to use.
|
22 |
* **Responsive** - resizes as your page resizes
|
23 |
+
* **GDPR compliant ** - with default settings, collects no user data and shares no user data (including IP addresses) with anyone else. Supports 'Do Not Track' (DNT).
|
24 |
+
* Gives you the option to show a fully customizable Twitter 'follow' button. *For note, because of the way Twitter's code for the Twitter button works, use of this button currently means that site visitors who have not set 'Do Not Track' will have their visit tracked by Twitter.*
|
25 |
* Replaces [t.co](http://t.co) links with the original link
|
26 |
* Caches the most recent data from Twitter to avoid problems with rate limiting
|
27 |
* Uses [jQuery](http://jquery.com/), [jQuery.Cycle](http://jquery.malsup.com/cycle/) and [jQuery.Cycle2](http://jquery.malsup.com/cycle2/) to produce a nice smooth result.
|
28 |
* Compatible with [W3 Total Cache](/plugins/w3-total-cache/).
|
|
|
29 |
* **Multi-lingual** - now set up to be multi-lingual. The Twitter 'follow' button is automatically translated to match your site's language setting [if Twitter has made the appropriate language available](https://developer.twitter.com/en/docs/developer-utilities/supported-languages/api-reference/get-help-languages). Also uses [Wordpress's multi-lingual capability](http://codex.wordpress.org/I18n_for_WordPress_Developers) to enable translation of all the other text used by the plug-in via [language packs](https://translate.wordpress.org/projects/wp-plugins/rotatingtweets).
|
30 |
|
31 |
If you'd like to see what the plug-in looks like in action, you can [see the plug-in working here](http://www.martintod.org.uk/2012/05/29/new-twitter-plugin-to-show-tweets-in-rotation/).
|
172 |
1. Read the diagnostics and look for any problems that relate to JavaScript. This will normally tell you which JavaScript (if any) is having problems.
|
173 |
|
174 |
= Does Rotating Tweets help me support GDPR? =
|
175 |
+
Yes. No user data is collected, stored or sent to Twitter by Rotating Tweets. By default, Rotating Tweets also does not load any JavaScript from Twitter or anywhere else 'off site'. It supports 'do not track' and only loads JavaScript from Twitter needed to display the Twitter Follow button if you choose that option and the user has not set 'do not track' on their browser. If you use an 'official format' for your Tweet, profile images may be loaded from Twitter; to avoid this, choose the 'original' format to display your Tweets.
|
176 |
|
177 |
= What can I do if I get the WordPress error code: `http_request_failed - name lookup timed out`? =
|
178 |
Try installing the [Core Control plug-in](/plugins/core-control/) and disabling cURL. You can read more about the problem via [this support page](http://wordpress.org/support/topic/wp-351-wordpress-error-code-http_request_failed-name-lookup-timed-out).
|
192 |
You can do this by going to the `rotatingtweets/css` directory, opening `rotatingtweets-sample.css` and copying its contents (modifying the link to the bird graphic to match your site) into [additional CSS](https://codex.wordpress.org/CSS#Custom_CSS_in_WordPress) (the preferred approach from Wordpress 4.7 onwards) on the [Appearance Customize Screen](https://codex.wordpress.org/Appearance_Customize_Screen) page. Alternatively rename `rotatingtweets-sample.css` to `rotatingtweets.css` and put it in the `wp-content/uploads/` directory. Or copy the CSS into your own template files. Any of these approaches will display a Twitter bird to the left of your tweets.
|
193 |
|
194 |
== Upgrade notice ==
|
195 |
+
= 1.9.7 =
|
196 |
+
* Fixes display bug where a Tweet contains two copies of the same URL.
|
197 |
|
198 |
== Changelog ==
|
199 |
+
= 1.9.7 =
|
200 |
+
* Fixes display bug where a Tweet contains two copies of the same URL.
|
201 |
+
|
202 |
= 1.9.6 =
|
203 |
* Twitter JavaScript only loads if Follow button is set to be displayed and the user has not set 'Do Not Track'.
|
204 |
|
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: 1.9.
|
6 |
Text Domain: rotatingtweets
|
7 |
Domain Path: /languages
|
8 |
Author: Martin Tod
|
@@ -1874,6 +1874,8 @@ function rotating_tweets_display($json,$args,$print=FALSE) {
|
|
1874 |
$after[] = "<a href='".$url['url']."' title='".$url['expanded_url']."'".$targetvalue." class='rtw_url_link'>".esc_html($displayurl)."</a>";
|
1875 |
endif;
|
1876 |
endforeach;
|
|
|
|
|
1877 |
endif;
|
1878 |
$show_media = '';
|
1879 |
if(isset($entities['media'])):
|
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: 1.9.7
|
6 |
Text Domain: rotatingtweets
|
7 |
Domain Path: /languages
|
8 |
Author: Martin Tod
|
1874 |
$after[] = "<a href='".$url['url']."' title='".$url['expanded_url']."'".$targetvalue." class='rtw_url_link'>".esc_html($displayurl)."</a>";
|
1875 |
endif;
|
1876 |
endforeach;
|
1877 |
+
$before = array_unique($before);
|
1878 |
+
$after = array_unique($after);
|
1879 |
endif;
|
1880 |
$show_media = '';
|
1881 |
if(isset($entities['media'])):
|