Twitter Widget Pro - Version 1.1.1

Version Description

Download this release

Release Info

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

Code changes from version 1.1.0 to 1.1.1

Files changed (2) hide show
  1. readme.txt +2 -2
  2. wp-twitter-widget.php +6 -2
readme.txt CHANGED
@@ -4,9 +4,9 @@ Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_xclick&business=paypal%4
4
  Tags: twitter, widget, feed
5
  Requires at least: 2.5
6
  Tested up to: 2.5.1
7
- Stable tag: 1.1.0
8
 
9
- A widget that properly handles twitter feeds (singlue user or including friends), including parsing @username and URLs into links. Requires PHP5.
10
 
11
  == Description ==
12
 
4
  Tags: twitter, widget, feed
5
  Requires at least: 2.5
6
  Tested up to: 2.5.1
7
+ Stable tag: 1.1.1
8
 
9
+ A widget that properly handles twitter feeds (single user or including friends), including parsing @username and URLs into links. Requires PHP5.
10
 
11
  == Description ==
12
 
wp-twitter-widget.php CHANGED
@@ -3,13 +3,17 @@
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 and link parsing, feeds that include friends or just one user, and can even display profile images for the users. Requires PHP5.
6
- * Version: 1.1.0
7
  * Author: Aaron D. Campbell
8
  * Author URI: http://xavisys.com/
9
  */
10
 
11
  /**
12
  * Changelog:
 
 
 
 
13
  * 04/23/2008: 1.1.0
14
  * - Most major fix is the inclusion of json_decode.php for users that don't have json_decode() which was added in PHP 5.2.0
15
  * - Fixed problem with displaying a useless li when profile images aren't displayed on a single user widget
@@ -136,7 +140,7 @@ class wpTwitterWidget
136
  * @return string - Tweet text with @replies linked
137
  */
138
  public function linkTwitterUsers($text) {
139
- $text = preg_replace('/(^|\s)@(\w*)(\s|$)/i', '$1@<a href="http://twitter.com/$2" class="twitter-user">$2</a>$3', $text);
140
  return $text;
141
  }
142
 
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 and link parsing, feeds that include friends or just one user, and can even display profile images for the users. Requires PHP5.
6
+ * Version: 1.1.1
7
  * Author: Aaron D. Campbell
8
  * Author URI: http://xavisys.com/
9
  */
10
 
11
  /**
12
  * Changelog:
13
+ * 04/23/2008: 1.1.1
14
+ * - Fixed issue with @username parsing of two names with one space between them (@test @ing)
15
+ * - Fixed readme typo
16
+ *
17
  * 04/23/2008: 1.1.0
18
  * - Most major fix is the inclusion of json_decode.php for users that don't have json_decode() which was added in PHP 5.2.0
19
  * - Fixed problem with displaying a useless li when profile images aren't displayed on a single user widget
140
  * @return string - Tweet text with @replies linked
141
  */
142
  public function linkTwitterUsers($text) {
143
+ $text = preg_replace('/(^|\s)@(\w*)/i', '$1@<a href="http://twitter.com/$2" class="twitter-user">$2</a>', $text);
144
  return $text;
145
  }
146