Twitter Widget Pro - Version 2.2.3

Version Description

Fixes links on 32 bit servers. If you are suffering from this I would recommend changing hosts (or talking to yours).

Download this release

Release Info

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

Code changes from version 2.2.2 to 2.2.3

Files changed (2) hide show
  1. readme.txt +9 -2
  2. wp-twitter-widget.php +5 -4
readme.txt CHANGED
@@ -2,9 +2,9 @@
2
  Contributors: aaroncampbell
3
  Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_xclick&business=paypal%40xavisys%2ecom&item_name=Twitter%20Widget%20Pro&no_shipping=0&no_note=1&tax=0&currency_code=USD&lc=US&bn=PP%2dDonationsBF&charset=UTF%2d8
4
  Tags: twitter, widget, feed
5
- Requires at least: 2.8
6
  Tested up to: 3.2.1
7
- Stable tag: 2.2.2
8
 
9
  A widget that properly handles twitter feeds, including parsing @username, #hashtags, and URLs into links. Requires PHP5.
10
 
@@ -81,6 +81,9 @@ Aparently the database queries required to display the friends feed was causing
81
 
82
  == Upgrade Notice ==
83
 
 
 
 
84
  = 2.2.2 =
85
  Fixes issue introduced in 2.2.1 with an incorrect function name (sorry about that)
86
 
@@ -89,6 +92,10 @@ Better SEO by adding the ability to remove the "from" links - Thanks <a href="ht
89
 
90
  == Changelog ==
91
 
 
 
 
 
92
  = 2.2.2 =
93
  * Fix issue introduced in 2.2.1 with an incorrect function name '_hashtagLink' (sorry about that)
94
 
2
  Contributors: aaroncampbell
3
  Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_xclick&business=paypal%40xavisys%2ecom&item_name=Twitter%20Widget%20Pro&no_shipping=0&no_note=1&tax=0&currency_code=USD&lc=US&bn=PP%2dDonationsBF&charset=UTF%2d8
4
  Tags: twitter, widget, feed
5
+ Requires at least: 3.0
6
  Tested up to: 3.2.1
7
+ Stable tag: 2.2.3
8
 
9
  A widget that properly handles twitter feeds, including parsing @username, #hashtags, and URLs into links. Requires PHP5.
10
 
81
 
82
  == Upgrade Notice ==
83
 
84
+ = 2.2.3 =
85
+ Fixes links on 32 bit servers. If you are suffering from this I would recommend changing hosts (or talking to yours).
86
+
87
  = 2.2.2 =
88
  Fixes issue introduced in 2.2.1 with an incorrect function name (sorry about that)
89
 
92
 
93
  == Changelog ==
94
 
95
+ = 2.2.3 =
96
+ * The Twitter-pocolypse hit a while back but since so many servers are 64 bit it wasn't an issue. This fixes links for users on 32 bit servers.
97
+ * Fix some notices thrown by translated strings
98
+
99
  = 2.2.2 =
100
  * Fix issue introduced in 2.2.1 with an incorrect function name '_hashtagLink' (sorry about that)
101
 
wp-twitter-widget.php CHANGED
@@ -3,7 +3,7 @@
3
  * Plugin Name: Twitter Widget Pro
4
  * Plugin URI: http://xavisys.com/wordpress-plugins/wordpress-twitter-widget/
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.2.2
7
  * Author: Aaron D. Campbell
8
  * Author URI: http://xavisys.com/
9
  * License: GPLv2 or later
@@ -36,6 +36,7 @@ class wpTwitterWidgetException extends Exception {}
36
  */
37
  class WP_Widget_Twitter_Pro extends WP_Widget {
38
  public function WP_Widget_Twitter_Pro () {
 
39
  $wpTwitterWidget = wpTwitterWidget::getInstance();
40
  $widget_ops = array(
41
  'classname' => 'widget_twitter',
@@ -494,7 +495,7 @@ class wpTwitterWidget extends XavisysPlugin {
494
  } else {
495
  $count = 0;
496
  foreach ( $tweets as $tweet ) {
497
- if ( $args['hidereplies'] != 'true' || empty( $tweet->in_reply_to_user_id ) ) {
498
  // Set our "ago" string which converts the date to "# ___(s) ago"
499
  $tweet->ago = $this->_timeSince( strtotime( $tweet->created_at ), $args['showts'], $args['dateFormat'] );
500
  $entryContent = apply_filters( 'widget_twitter_content', $tweet->text );
@@ -504,7 +505,7 @@ class wpTwitterWidget extends XavisysPlugin {
504
  $widgetContent .= " <span class='entry-meta'>";
505
  $widgetContent .= "<span class='time-meta'>";
506
  $linkAttrs = array(
507
- 'href' => "http://twitter.com/{$tweet->user->screen_name}/statuses/{$tweet->id}"
508
  );
509
  $widgetContent .= $this->_buildLink( $tweet->ago, $linkAttrs );
510
  $widgetContent .= '</span>';
@@ -514,7 +515,7 @@ class wpTwitterWidget extends XavisysPlugin {
514
  $rtLinkText = sprintf( __( 'in reply to %s', $this->_slug ), $tweet->in_reply_to_screen_name );
515
  $widgetContent .= ' <span class="in-reply-to-meta">';
516
  $linkAttrs = array(
517
- 'href' => "http://twitter.com/{$tweet->in_reply_to_screen_name}/statuses/{$tweet->in_reply_to_status_id}",
518
  'class' => 'reply-to'
519
  );
520
  $widgetContent .= $this->_buildLink( $rtLinkText, $linkAttrs );
3
  * Plugin Name: Twitter Widget Pro
4
  * Plugin URI: http://xavisys.com/wordpress-plugins/wordpress-twitter-widget/
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.2.3
7
  * Author: Aaron D. Campbell
8
  * Author URI: http://xavisys.com/
9
  * License: GPLv2 or later
36
  */
37
  class WP_Widget_Twitter_Pro extends WP_Widget {
38
  public function WP_Widget_Twitter_Pro () {
39
+ $this->_slug = 'twitter-widget-pro';
40
  $wpTwitterWidget = wpTwitterWidget::getInstance();
41
  $widget_ops = array(
42
  'classname' => 'widget_twitter',
495
  } else {
496
  $count = 0;
497
  foreach ( $tweets as $tweet ) {
498
+ if ( $args['hidereplies'] != 'true' || empty( $tweet->in_reply_to_user_id_str ) ) {
499
  // Set our "ago" string which converts the date to "# ___(s) ago"
500
  $tweet->ago = $this->_timeSince( strtotime( $tweet->created_at ), $args['showts'], $args['dateFormat'] );
501
  $entryContent = apply_filters( 'widget_twitter_content', $tweet->text );
505
  $widgetContent .= " <span class='entry-meta'>";
506
  $widgetContent .= "<span class='time-meta'>";
507
  $linkAttrs = array(
508
+ 'href' => "http://twitter.com/{$tweet->user->screen_name}/statuses/{$tweet->id_str}"
509
  );
510
  $widgetContent .= $this->_buildLink( $tweet->ago, $linkAttrs );
511
  $widgetContent .= '</span>';
515
  $rtLinkText = sprintf( __( 'in reply to %s', $this->_slug ), $tweet->in_reply_to_screen_name );
516
  $widgetContent .= ' <span class="in-reply-to-meta">';
517
  $linkAttrs = array(
518
+ 'href' => "http://twitter.com/{$tweet->in_reply_to_screen_name}/statuses/{$tweet->in_reply_to_status_id_str}",
519
  'class' => 'reply-to'
520
  );
521
  $widgetContent .= $this->_buildLink( $rtLinkText, $linkAttrs );