Twitter Widget Pro - Version 2.0.3

Version Description

  • Removed some whitespace that was messing up styling for some people
Download this release

Release Info

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

Code changes from version 2.0.2 to 2.0.3

Files changed (3) hide show
  1. readme.txt +6 -3
  2. upgrade.html +2 -6
  3. wp-twitter-widget.php +5 -13
readme.txt CHANGED
@@ -4,7 +4,7 @@ Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_xclick&business=paypal%4
4
  Tags: twitter, widget, feed
5
  Requires at least: 2.8
6
  Tested up to: 2.8.4
7
- Stable tag: 2.0.2
8
 
9
  A widget that properly handles twitter feeds, including parsing @username, #hashtags, and URLs into links. Requires PHP5.
10
 
@@ -37,9 +37,9 @@ Absolutely, each instance of the widget can have different settings and track di
37
 
38
  Aparently the database queries required to display the friends feed was causing twitter to crash, so they removed it. Unfortunately, this is outside my control.
39
 
40
- = I get an error similar to "Parse error: syntax error, unexpected T_STRING, expecting T_OLD_FUNCTION or T_FUNCTION or T_VAR or } in /.../wp-twitter-widget.php on line ##" when I try to activate the plugin. Is your plugin broke? =
41
 
42
- No. This error occurs because the plugin requires PHP 5 and youre running PHP 4. Most hosts offer PHP5 but sometimes you have to enable it in your control panel, through .htaccess, or by asking them. There may be instructions for your specific host in the <a href="http://codex.wordpress.org/Switching_to_PHP5">Switching to PHP5</a> article in the codex.
43
 
44
  == Screenshots ==
45
 
@@ -50,6 +50,9 @@ No. This error occurs because the plugin requires PHP 5 and you
50
 
51
  == Changelog ==
52
 
 
 
 
53
  = 2.0.2 =
54
  * Fixed Profile image error
55
  * Added another FAQ (about PHP 5)
4
  Tags: twitter, widget, feed
5
  Requires at least: 2.8
6
  Tested up to: 2.8.4
7
+ Stable tag: 2.0.3
8
 
9
  A widget that properly handles twitter feeds, including parsing @username, #hashtags, and URLs into links. Requires PHP5.
10
 
37
 
38
  Aparently the database queries required to display the friends feed was causing twitter to crash, so they removed it. Unfortunately, this is outside my control.
39
 
40
+ = I get an error similar to "Parse error: syntax error, unexpected T_STRING, expecting T_OLD_FUNCTION or T_FUNCTION or T_VAR or '}' in /.../wp-twitter-widget.php on line ##" when I try to activate the plugin. Is your plugin broke? =
41
 
42
+ No. This error occurs because the plugin requires PHP 5 and you're running PHP 4. Most hosts offer PHP5 but sometimes you have to enable it in your control panel, through .htaccess, or by asking them. There may be instructions for your specific host in the <a href="http://codex.wordpress.org/Switching_to_PHP5">Switching to PHP5</a> article in the codex.
43
 
44
  == Screenshots ==
45
 
50
 
51
  == Changelog ==
52
 
53
+ = 2.0.3 =
54
+ * Removed some whitespace that was messing up styling for some people
55
+
56
  = 2.0.2 =
57
  * Fixed Profile image error
58
  * Added another FAQ (about PHP 5)
upgrade.html CHANGED
@@ -1,9 +1,5 @@
1
  <p><a href="http://wordpress.org/extend/plugins/twitter-widget-pro/changelog/">Change Log</a></p>
2
  <ul style="list-style: disc inside; padding: 5px 0 0 15px; font-weight: normal;">
3
- <li style="color:red; font-weight:bold;">2.0.0: Now requires WordPress 2.8 and still required PHP 5+</li>
4
- <li>2.0.0: Completely rewitten to use the new widget class introduced in WordPress 2.8</li>
5
- <li>2.0.0: Now uses the json class that will be included in WordPress 2.9 for anyone on PHP < 5.2</li>
6
- <li>2.0.0: The "Show Link to Twitter Widget Pro" is now off by default to comply with the latest decisions regarding the plugin repository</li>
7
- <li>2.0.1: Fixed problem with invalid actions introduced into 2.0.0</li>
8
- <li>2.0.2: Fixed profile image problem</li>
9
  </ul>
1
  <p><a href="http://wordpress.org/extend/plugins/twitter-widget-pro/changelog/">Change Log</a></p>
2
  <ul style="list-style: disc inside; padding: 5px 0 0 15px; font-weight: normal;">
3
+ <li>2.0.3: Removed some whitespace that was messing up styling for some people</li>
4
+ <li style="color:red; font-weight:bold;">2.0+: Now requires WordPress 2.8 and still requires PHP 5+</li>
 
 
 
 
5
  </ul>
wp-twitter-widget.php CHANGED
@@ -3,7 +3,7 @@
3
  * Plugin Name: Twitter Widget Pro
4
  * Plugin URI: http://xavisys.com/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.0.2
7
  * Author: Aaron D. Campbell
8
  * Author URI: http://xavisys.com/
9
  * Text Domain: twitter-widget-pro
@@ -203,9 +203,7 @@ class WP_Widget_Twitter_Pro extends WP_Widget {
203
  <span class="entry-content"><?php echo apply_filters( 'widget_twitter_content', $tweet->text ); ?></span>
204
  <span class="entry-meta">
205
  <span class="time-meta">
206
- <a href="http://twitter.com/<?php echo $tweet->user->screen_name; ?>/statuses/<?php echo $tweet->id; ?>">
207
- <?php echo $tweet->ago; ?>
208
- </a>
209
  </span>
210
  <span class="from-meta">
211
  <?php echo sprintf(__('from %s', 'twitter-widget-pro'), str_replace('&', '&amp;', $tweet->source)); ?>
@@ -215,9 +213,7 @@ class WP_Widget_Twitter_Pro extends WP_Widget {
215
  $rtLinkText = sprintf( __('in reply to %s', 'twitter-widget-pro'), $tweet->in_reply_to_screen_name );
216
  echo <<<replyTo
217
  <span class="in-reply-to-meta">
218
- <a href="http://twitter.com/{$tweet->in_reply_to_screen_name}/statuses/{$tweet->in_reply_to_status_id}" class="reply-to">
219
- {$rtLinkText}
220
- </a>
221
  </span>
222
  replyTo;
223
  } ?>
@@ -389,9 +385,7 @@ replyTo;
389
  */
390
  private function _getProfileImage($user) {
391
  return <<<profileImage
392
- <a title="{$user->name}" href="http://twitter.com/{$user->screen_name}">
393
- <img alt="{$user->name}" src="{$user->profile_image_url}" />
394
- </a>
395
  profileImage;
396
  }
397
  }
@@ -468,9 +462,7 @@ class wpTwitterWidget
468
  <table class="form-table">
469
  <tr valign="top">
470
  <th scope="row">
471
- <a title="<?php _e('Click for Help!', 'twitter-widget-pro'); ?>" href="#" onclick="jQuery('#twp_user_agreed_to_send_system_information_help').toggle(); return false;">
472
- <?php _e('System Information:', 'twitter-widget-pro') ?>
473
- </a>
474
  </th>
475
  <td>
476
  <input type="hidden" name="twitter_widget_pro[user_agreed_to_send_system_information]" value="false" />
3
  * Plugin Name: Twitter Widget Pro
4
  * Plugin URI: http://xavisys.com/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.0.3
7
  * Author: Aaron D. Campbell
8
  * Author URI: http://xavisys.com/
9
  * Text Domain: twitter-widget-pro
203
  <span class="entry-content"><?php echo apply_filters( 'widget_twitter_content', $tweet->text ); ?></span>
204
  <span class="entry-meta">
205
  <span class="time-meta">
206
+ <a href="http://twitter.com/<?php echo $tweet->user->screen_name; ?>/statuses/<?php echo $tweet->id; ?>"><?php echo $tweet->ago; ?></a>
 
 
207
  </span>
208
  <span class="from-meta">
209
  <?php echo sprintf(__('from %s', 'twitter-widget-pro'), str_replace('&', '&amp;', $tweet->source)); ?>
213
  $rtLinkText = sprintf( __('in reply to %s', 'twitter-widget-pro'), $tweet->in_reply_to_screen_name );
214
  echo <<<replyTo
215
  <span class="in-reply-to-meta">
216
+ <a href="http://twitter.com/{$tweet->in_reply_to_screen_name}/statuses/{$tweet->in_reply_to_status_id}" class="reply-to">{$rtLinkText}</a>
 
 
217
  </span>
218
  replyTo;
219
  } ?>
385
  */
386
  private function _getProfileImage($user) {
387
  return <<<profileImage
388
+ <a title="{$user->name}" href="http://twitter.com/{$user->screen_name}"><img alt="{$user->name}" src="{$user->profile_image_url}" /></a>
 
 
389
  profileImage;
390
  }
391
  }
462
  <table class="form-table">
463
  <tr valign="top">
464
  <th scope="row">
465
+ <a title="<?php _e('Click for Help!', 'twitter-widget-pro'); ?>" href="#" onclick="jQuery('#twp_user_agreed_to_send_system_information_help').toggle(); return false;"><?php _e('System Information:', 'twitter-widget-pro') ?></a>
 
 
466
  </th>
467
  <td>
468
  <input type="hidden" name="twitter_widget_pro[user_agreed_to_send_system_information]" value="false" />