Twitter Widget Pro - Version 1.3.6

Version Description

Download this release

Release Info

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

Code changes from version 1.3.5 to 1.3.6

Files changed (2) hide show
  1. readme.txt +5 -5
  2. wp-twitter-widget.php +10 -18
readme.txt CHANGED
@@ -4,18 +4,18 @@ Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_xclick&business=paypal%4
4
  Tags: twitter, widget, feed
5
  Requires at least: 2.7
6
  Tested up to: 2.8
7
- Stable tag: 1.3.5
8
 
9
- A widget that properly handles twitter feeds, including parsing @username and URLs into links. Requires PHP5.
10
 
11
  == Description ==
12
 
13
- A widget that properly handles twitter feeds, including @username and link
14
- parsing. It supports displaying profiles images, and even lets you control
15
  whether to display the time and date of a tweet or how log ago it happened
16
  (about 5 hours ago, etc). Requires PHP5.
17
 
18
- You may also be interested in WordPress tips and tricks at <a href="http://wpinformer.com">WordPress Informer</a>
19
 
20
  == Installation ==
21
 
4
  Tags: twitter, widget, feed
5
  Requires at least: 2.7
6
  Tested up to: 2.8
7
+ Stable tag: 1.3.4
8
 
9
+ A widget that properly handles twitter feeds, including parsing @username, #hashtags, and URLs into links. Requires PHP5.
10
 
11
  == Description ==
12
 
13
+ A widget that properly handles twitter feeds, including @username, #hashtag, and
14
+ link parsing. It supports displaying profiles images, and even lets you control
15
  whether to display the time and date of a tweet or how log ago it happened
16
  (about 5 hours ago, etc). Requires PHP5.
17
 
18
+ You may also be interested in WordPress tips and tricks at <a href="http://wpinformer.com">WordPress Informer</a> or gerneral <a href="http://webdevnews.net">Web Developer News</a>
19
 
20
  == Installation ==
21
 
wp-twitter-widget.php CHANGED
@@ -2,21 +2,21 @@
2
  /**
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, and can even display profile images for the users. Requires PHP5.
6
- * Version: 1.3.5
7
  * Author: Aaron D. Campbell
8
  * Author URI: http://xavisys.com/
9
  */
10
 
11
- /**
12
- * @todo Clickable #hashtags
13
- */
14
-
15
- define('TWP_VERSION', '1.3.5');
16
 
17
  /**
18
  * Changelog:
19
- * 05/02/2009: 1.3.5
 
 
 
 
20
  * - #Hashtags are now linked to twitter search
21
  *
22
  * 05/02/2009: 1.3.4
@@ -253,7 +253,7 @@ class wpTwitterWidget
253
  * $4 is the URL without the protocol://
254
  * $5 is the URL parameters
255
  */
256
- $text = preg_replace("/(^|\s)(([a-zA-Z]+:\/\/)([a-z][a-z0-9_\..-]*[a-z]{2,6})([a-zA-Z0-9\/*-?&%]*))/i", "$1<a href=\"$2\">$2</a>", $text);
257
 
258
  /**
259
  * match www.something.domain/path/file.extension?some=variable&another=asf%
@@ -263,7 +263,7 @@ class wpTwitterWidget
263
  * $4 is the URL matched without the www.
264
  * $5 is the URL parameters
265
  */
266
- $text = preg_replace("/(^|\s)(www\.([a-z][a-z0-9_\..-]*[a-z]{2,6})([a-zA-Z0-9\/*-?&%]*))/i", "$1<a href=\"http://$2\">$2</a>", $text);
267
 
268
  return $text;
269
  }
@@ -543,16 +543,8 @@ profileImage;
543
  'showts' => 60 * 60 * 24,
544
  'number' => '%i%' );
545
 
546
- echo '<!-- HERE 3:';
547
- var_dump($args);
548
- var_dump($defaultArgs);
549
- echo '-->';
550
  $args = wp_parse_args( $args, $defaultArgs );
551
  extract( $args );
552
- echo '<!-- HERE 4:';
553
- var_dump($args);
554
- var_dump($showXavisysLink);
555
- echo '-->';
556
  ?>
557
  <p>
558
  <label for="twitter-username-<?php echo $number; ?>"><?php _e('Twitter username:'); ?></label>
2
  /**
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: 1.3.6
7
  * Author: Aaron D. Campbell
8
  * Author URI: http://xavisys.com/
9
  */
10
 
11
+ define('TWP_VERSION', '1.3.6');
 
 
 
 
12
 
13
  /**
14
  * Changelog:
15
+ * 06/08/2009: 1.3.6
16
+ * - Fixes issue with linking URLs containing a ~
17
+ * - Removed some debugging stuff
18
+ *
19
+ * 06/04/2009: 1.3.5
20
  * - #Hashtags are now linked to twitter search
21
  *
22
  * 05/02/2009: 1.3.4
253
  * $4 is the URL without the protocol://
254
  * $5 is the URL parameters
255
  */
256
+ $text = preg_replace("/(^|\s)(([a-zA-Z]+:\/\/)([a-z][a-z0-9_\..-]*[a-z]{2,6})([a-zA-Z0-9~\/*-?&%]*))/i", "$1<a href=\"$2\">$2</a>", $text);
257
 
258
  /**
259
  * match www.something.domain/path/file.extension?some=variable&another=asf%
263
  * $4 is the URL matched without the www.
264
  * $5 is the URL parameters
265
  */
266
+ $text = preg_replace("/(^|\s)(www\.([a-z][a-z0-9_\..-]*[a-z]{2,6})([a-zA-Z0-9~\/*-?&%]*))/i", "$1<a href=\"http://$2\">$2</a>", $text);
267
 
268
  return $text;
269
  }
543
  'showts' => 60 * 60 * 24,
544
  'number' => '%i%' );
545
 
 
 
 
 
546
  $args = wp_parse_args( $args, $defaultArgs );
547
  extract( $args );
 
 
 
 
548
  ?>
549
  <p>
550
  <label for="twitter-username-<?php echo $number; ?>"><?php _e('Twitter username:'); ?></label>