Rotating Tweets (Twitter widget and shortcode) - Version 1.3.11

Version Description

Includes an important upgrade needed for Rotating Tweets to keep working after March 2013. Supports version 1.1 of the Twitter API. Fixed problem with hashtags.

=

Download this release

Release Info

Developer mpntod
Plugin Icon wp plugin Rotating Tweets (Twitter widget and shortcode)
Version 1.3.11
Comparing to
See all releases

Code changes from version 1.3.10 to 1.3.11

Files changed (2) hide show
  1. readme.txt +8 -2
  2. rotatingtweets.php +2 -2
readme.txt CHANGED
@@ -4,7 +4,7 @@ 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
5
  Requires at least: 2.6
6
  Tested up to: 3.5
7
- Stable tag: 1.3.10
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -91,15 +91,21 @@ You can do this by going to the `rotatingtweets/css` directory and renaming `you
91
 
92
  = The Rotating Tweets are not rotating. What can I do? =
93
  This normally happens if there is more than one copy of jQuery installed on a page - or more than one copy of jQuery.cycle.
 
94
  To see if this is the case, you can search the HTML on your website to see if either script is called more than once. The quickest way is to search the page for `jquery` and look out for lines that contain `jquery.min.js` or `jquery.cycle.all.min.js`.
 
95
  The problem is that the second (or third) copy of the script overwrites all previous versions and the scripts that go with them. This is particularly likely to happen with old templates or plug-ins.
 
96
  If this is the case, the first thing to check is that you have upgraded your template or your plug-in to the latest version.
97
 
98
  == Upgrade notice ==
99
- = 1.3.10 =
100
  Includes an important upgrade needed for Rotating Tweets to keep working after March 2013. Supports version 1.1 of the Twitter API. Fixed problem with hashtags.
101
 
102
  == Changelog ==
 
 
 
103
  = 1.3.10 =
104
  Fixed hashtag links
105
 
4
  Tags: shortcode,widget,twitter,rotating,rotate,rotator,tweet,tweets,animation,jquery,jquery cycle,cycle,multilingual
5
  Requires at least: 2.6
6
  Tested up to: 3.5
7
+ Stable tag: 1.3.11
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
91
 
92
  = The Rotating Tweets are not rotating. What can I do? =
93
  This normally happens if there is more than one copy of jQuery installed on a page - or more than one copy of jQuery.cycle.
94
+
95
  To see if this is the case, you can search the HTML on your website to see if either script is called more than once. The quickest way is to search the page for `jquery` and look out for lines that contain `jquery.min.js` or `jquery.cycle.all.min.js`.
96
+
97
  The problem is that the second (or third) copy of the script overwrites all previous versions and the scripts that go with them. This is particularly likely to happen with old templates or plug-ins.
98
+
99
  If this is the case, the first thing to check is that you have upgraded your template or your plug-in to the latest version.
100
 
101
  == Upgrade notice ==
102
+ = 1.3.11 =
103
  Includes an important upgrade needed for Rotating Tweets to keep working after March 2013. Supports version 1.1 of the Twitter API. Fixed problem with hashtags.
104
 
105
  == Changelog ==
106
+ = 1.3.11 =
107
+ Supports cyrillic hashtags!
108
+
109
  = 1.3.10 =
110
  Fixed hashtag links
111
 
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.3.10
6
  Text Domain: rotatingtweets
7
  Author: Martin Tod
8
  Author URI: http://www.martintod.org.uk
@@ -897,7 +897,7 @@ function rotating_tweets_display($json,$args,$print=TRUE) {
897
  $after[] = "<a href='".$medium['url']."' title='".$medium['expanded_url']."'".$targetvalue.">".esc_html($displayurl)."</a>";
898
  endforeach;
899
  endif;
900
- $before[]="%#([0-9]*[a-zA-Z]+\w*)%";
901
  $after[]='<a href="http://twitter.com/search?q=%23$1&src=hash" title="#$1"'.$targetvalue.'>#$1</a>';
902
  $main_text = preg_replace($before,$after,$main_text);
903
 
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.3.11
6
  Text Domain: rotatingtweets
7
  Author: Martin Tod
8
  Author URI: http://www.martintod.org.uk
897
  $after[] = "<a href='".$medium['url']."' title='".$medium['expanded_url']."'".$targetvalue.">".esc_html($displayurl)."</a>";
898
  endforeach;
899
  endif;
900
+ $before[]="%#([0-9]*[\p{L}a-zA-Z_]+\w*)%";
901
  $after[]='<a href="http://twitter.com/search?q=%23$1&src=hash" title="#$1"'.$targetvalue.'>#$1</a>';
902
  $main_text = preg_replace($before,$after,$main_text);
903