Rotating Tweets (Twitter widget and shortcode) - Version 1.7.4

Version Description

  • Ensures all images use https:// link for compatibility with SSL-secured sites

=

Download this release

Release Info

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

Code changes from version 1.7.3 to 1.7.4

Files changed (2) hide show
  1. readme.txt +6 -3
  2. rotatingtweets.php +2 -6
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,responsive
5
  Requires at least: 2.6
6
  Tested up to: 4.0
7
- Stable tag: 1.7.3
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -174,10 +174,13 @@ into your CSS - changing `123px;` to the width you're aiming at - either via put
174
  You can do this by going to the `rotatingtweets/css` directory and renaming `rotatingtweets-sample.css` to `rotatingtweets.css` and putting it in the `wp-content/uploads/` directory. This displays a Twitter bird to the left of your tweets. Any CSS you put into `rotatingtweets.css` won't be overwritten when the plug-in is upgraded to the latest version.
175
 
176
  == Upgrade notice ==
177
- = 1.7.3 =
178
- * Adds `show_tco_link` shortcode variable to allow people to show t.co.links. Support for Newswire template.
179
 
180
  == Changelog ==
 
 
 
181
  = 1.7.3 =
182
  * Adds `show_tco_link` shortcode variable to allow people to show t.co.links.
183
  * Support for Newswire template
4
  Tags: shortcode,widget,twitter,rotating,rotate,rotator,tweet,tweets,animation,jquery,jquery cycle,cycle,multilingual,responsive
5
  Requires at least: 2.6
6
  Tested up to: 4.0
7
+ Stable tag: 1.7.4
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
174
  You can do this by going to the `rotatingtweets/css` directory and renaming `rotatingtweets-sample.css` to `rotatingtweets.css` and putting it in the `wp-content/uploads/` directory. This displays a Twitter bird to the left of your tweets. Any CSS you put into `rotatingtweets.css` won't be overwritten when the plug-in is upgraded to the latest version.
175
 
176
  == Upgrade notice ==
177
+ = 1.7.4 =
178
+ * Ensures all images use `https://` link for compatibility with SSL-secured sites
179
 
180
  == Changelog ==
181
+ = 1.7.4 =
182
+ * Ensures all images use `https://` link for compatibility with SSL-secured sites
183
+
184
  = 1.7.3 =
185
  * Adds `show_tco_link` shortcode variable to allow people to show t.co.links.
186
  * Support for Newswire template
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.7.3
6
  Text Domain: rotatingtweets
7
  Author: Martin Tod
8
  Author URI: http://www.martintod.org.uk
@@ -401,11 +401,7 @@ function rotatingtweets_user_intent($person,$lang,$linkcontent,$targetvalue='')
401
  $return = "<a href='https://twitter.com/intent/user?user_id={$person['id']}' title='".esc_attr($person['name'])."' lang='{$lang}'{$targetvalue}>";
402
  switch($linkcontent){
403
  case 'icon':
404
- if(isset($_SERVER['HTTPS'])):
405
- $return .= "<img src='{$person['profile_image_url_https']}' alt='".esc_attr($person['name'])."' /></a>";
406
- else:
407
- $return .= "<img src='{$person['profile_image_url']}' alt='".esc_attr($person['name'])."' /></a>";
408
- endif;
409
  break;
410
  case 'name':
411
  $return .= $person['name']."</a>";
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.7.4
6
  Text Domain: rotatingtweets
7
  Author: Martin Tod
8
  Author URI: http://www.martintod.org.uk
401
  $return = "<a href='https://twitter.com/intent/user?user_id={$person['id']}' title='".esc_attr($person['name'])."' lang='{$lang}'{$targetvalue}>";
402
  switch($linkcontent){
403
  case 'icon':
404
+ $return .= "<img src='{$person['profile_image_url_https']}' alt='".esc_attr($person['name'])."' /></a>";
 
 
 
 
405
  break;
406
  case 'name':
407
  $return .= $person['name']."</a>";