Twitter Widget Pro - Version 2.5.4

Version Description

Minor fix for a strict PHP notice

Download this release

Release Info

Developer aaroncampbell
Plugin Icon wp plugin Twitter Widget Pro
Version 2.5.4
Comparing to
See all releases

Code changes from version 2.5.3 to 2.5.4

range-plugin-framework.php CHANGED
@@ -151,11 +151,6 @@ if (!class_exists('RangePlugin')) {
151
  add_action ( 'in_plugin_update_message-'.$this->_file , array ( $this , 'changelog' ), null, 2 );
152
  }
153
 
154
- /**
155
- * Function to instantiate our class and make it a singleton
156
- */
157
- abstract public static function getInstance();
158
-
159
  public function init_locale() {
160
  $lang_dir = basename(dirname(__FILE__)) . '/languages';
161
  load_plugin_textdomain( $this->_slug, 'wp-content/plugins/' . $lang_dir, $lang_dir);
151
  add_action ( 'in_plugin_update_message-'.$this->_file , array ( $this , 'changelog' ), null, 2 );
152
  }
153
 
 
 
 
 
 
154
  public function init_locale() {
155
  $lang_dir = basename(dirname(__FILE__)) . '/languages';
156
  load_plugin_textdomain( $this->_slug, 'wp-content/plugins/' . $lang_dir, $lang_dir);
readme.txt CHANGED
@@ -4,18 +4,15 @@ Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_i
4
  Tags: twitter, widget, feed
5
  Requires at least: 3.0
6
  Tested up to: 3.6
7
- Stable tag: 2.5.3
8
 
9
  A widget that properly handles twitter feeds, including parsing @username, #hashtags, and URLs into links.
10
 
11
  == Description ==
12
 
13
- A widget that properly handles twitter feeds, including parsing @username,
14
- #hashtag, and URLs into links. It supports displaying profiles images, and even
15
- lets you control whether to display the time and date of a tweet or how log ago
16
- it happened (about 5 hours ago, etc).
17
 
18
- <a href="http://bluedogwebservices.com/wordpress-plugin/twitter-widget-pro/">Twitter Widget Pro</a>
19
  Brought to you by <a href="http://ran.ge/" title="WordPress Development">Ran.ge</a>
20
 
21
  == Installation ==
@@ -134,6 +131,9 @@ Aparently the database queries required to display the friends feed was causing
134
 
135
  == Upgrade Notice ==
136
 
 
 
 
137
  = 2.5.3 =
138
  Another SSL verification fix and add Twitter List support to shortcodes
139
 
@@ -190,6 +190,9 @@ Fewer "could not connect to Twitter" messages, new links (reply, retweet, favori
190
 
191
  == Changelog ==
192
 
 
 
 
193
  = 2.5.3 =
194
  * Don't force verification of Twitter's SSL certificate
195
  * Add support for Twitter Lists in shortcodes
4
  Tags: twitter, widget, feed
5
  Requires at least: 3.0
6
  Tested up to: 3.6
7
+ Stable tag: 2.5.4
8
 
9
  A widget that properly handles twitter feeds, including parsing @username, #hashtags, and URLs into links.
10
 
11
  == Description ==
12
 
13
+ A widget that properly handles twitter feeds, including parsing @username, #hashtag, and URLs into links. It supports displaying profiles images, and even lets you control whether to display the time and date of a tweet or how log ago it happened (about 5 hours ago, etc).
 
 
 
14
 
15
+ <a href="http://ran.ge/wordpress-plugin/twitter-widget-pro/">Twitter Widget Pro</a>
16
  Brought to you by <a href="http://ran.ge/" title="WordPress Development">Ran.ge</a>
17
 
18
  == Installation ==
131
 
132
  == Upgrade Notice ==
133
 
134
+ = 2.5.4 =
135
+ Minor fix for a strict PHP notice
136
+
137
  = 2.5.3 =
138
  Another SSL verification fix and add Twitter List support to shortcodes
139
 
190
 
191
  == Changelog ==
192
 
193
+ = 2.5.4 =
194
+ * Minor fix for a strict PHP notice
195
+
196
  = 2.5.3 =
197
  * Don't force verification of Twitter's SSL certificate
198
  * Add support for Twitter Lists in shortcodes
wp-twitter-widget.php CHANGED
@@ -3,7 +3,7 @@
3
  * Plugin Name: Twitter Widget Pro
4
  * Plugin URI: http://bluedogwebservices.com/wordpress-plugin/twitter-widget-pro/
5
  * Description: A widget that properly handles twitter feeds, including @username, #hashtag, and link parsing. It can even display profile images for the users. Requires PHP5.
6
- * Version: 2.5.3
7
  * Author: Aaron D. Campbell
8
  * Author URI: http://ran.ge/
9
  * License: GPLv2 or later
@@ -820,6 +820,7 @@ class wpTwitterWidget extends RangePlugin {
820
  $attributes = wp_parse_args( $attributes );
821
 
822
  $text = apply_filters( 'widget_twitter_link_text', $text );
 
823
  $link = '<a';
824
  foreach ( $attributes as $name => $value ) {
825
  $link .= ' ' . esc_attr( $name ) . '="' . esc_attr( $value ) . '"';
@@ -1156,7 +1157,7 @@ class wpTwitterWidget extends RangePlugin {
1156
  'href' => "http://twitter.com/{$user->screen_name}",
1157
  'title' => $user->name
1158
  );
1159
- $replace = ( 'original' == $args['avatar'] )? '':"_{$args['avatar']}.";
1160
  $img = str_replace( '_normal.', $replace, $user->profile_image_url_https );
1161
 
1162
  return $this->_buildLink( "<img alt='{$user->name}' src='{$img}' />", $linkAttrs, true );
3
  * Plugin Name: Twitter Widget Pro
4
  * Plugin URI: http://bluedogwebservices.com/wordpress-plugin/twitter-widget-pro/
5
  * Description: A widget that properly handles twitter feeds, including @username, #hashtag, and link parsing. It can even display profile images for the users. Requires PHP5.
6
+ * Version: 2.5.4
7
  * Author: Aaron D. Campbell
8
  * Author URI: http://ran.ge/
9
  * License: GPLv2 or later
820
  $attributes = wp_parse_args( $attributes );
821
 
822
  $text = apply_filters( 'widget_twitter_link_text', $text );
823
+ $noFilter = apply_filters( 'widget_twitter_link_nofilter', $noFilter );
824
  $link = '<a';
825
  foreach ( $attributes as $name => $value ) {
826
  $link .= ' ' . esc_attr( $name ) . '="' . esc_attr( $value ) . '"';
1157
  'href' => "http://twitter.com/{$user->screen_name}",
1158
  'title' => $user->name
1159
  );
1160
+ $replace = ( 'original' == $args['avatar'] )? '.':"_{$args['avatar']}.";
1161
  $img = str_replace( '_normal.', $replace, $user->profile_image_url_https );
1162
 
1163
  return $this->_buildLink( "<img alt='{$user->name}' src='{$img}' />", $linkAttrs, true );