Simple Twitter Tweets - Version 1.3.1

Version Description

  • Added @ symbol for Twitter name links in Tweets
Download this release

Release Info

Developer Planet Interactive
Plugin Icon 128x128 Simple Twitter Tweets
Version 1.3.1
Comparing to
See all releases

Code changes from version 1.3 to 1.3.1

Files changed (2) hide show
  1. README.txt +14 -11
  2. simple-twitter-tweets.php +2 -2
README.txt CHANGED
@@ -4,7 +4,7 @@ Donate: https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=A94
4
  Tags: Twitter, Stream, Tweets, Twitter OAuth, social
5
  Requires at least: 3.0
6
  Tested up to: 3.5.2
7
- Stable tag: 1.3
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -115,17 +115,20 @@ As far as we know it just works! Phew, but if you have an issue or you want to p
115
 
116
  == Changelog ==
117
 
 
 
 
118
  = 1.3 =
119
- Added
120
- * Hash Tag linking and ReTweet @names linking
121
- * Name reference added to hover state attribute for date link Screen Names - better than username reference
122
 
123
- Updated
124
- * Updated depricated functions to ensure future compatibility
125
- * Rewrote link creation for URLs in tweets
126
 
127
- Fixed
128
- * Fixed screen name reference for Twitter date links
129
 
130
  = 1.2 =
131
  * Added Twitter name reference enabling database backup for multiple account use
@@ -140,5 +143,5 @@ Fixed
140
 
141
  == Upgrade Notice ==
142
 
143
- = 1.3 =
144
- Fixed screen name reference in links, NEW Hash Tag and Twitter Name linking, link creation rewritten and more.
4
  Tags: Twitter, Stream, Tweets, Twitter OAuth, social
5
  Requires at least: 3.0
6
  Tested up to: 3.5.2
7
+ Stable tag: 1.3.1
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
115
 
116
  == Changelog ==
117
 
118
+ = 1.3.1 =
119
+ * Added @ symbol for Twitter name links in Tweets
120
+
121
  = 1.3 =
122
+ * Added
123
+ * Hash Tag linking and ReTweet @names linking
124
+ * Name reference added to hover state attribute for date link Screen Names - better than username reference
125
 
126
+ * Updated
127
+ * Updated depricated functions to ensure future compatibility
128
+ * Rewrote link creation for URLs in tweets
129
 
130
+ * Fixed
131
+ * Fixed screen name reference for Twitter date links
132
 
133
  = 1.2 =
134
  * Added Twitter name reference enabling database backup for multiple account use
143
 
144
  == Upgrade Notice ==
145
 
146
+ = 1.3.1 =
147
+ Minor update. Added @ symbol for visual Twitter names in Tweets
simple-twitter-tweets.php CHANGED
@@ -4,7 +4,7 @@ Plugin Name: Simple Twitter Tweets
4
  Plugin URI: http://www.planet-interactive.co.uk/simple-twitter-tweets
5
  Description: Display last x number tweets from Twitter API stream, store locally in dataabse to present past tweets when failure to access Twitters restrictive API occurs
6
  Author: Ashley Sheinwald
7
- Version: 1.3
8
  Author URI: http://www.planet-interactive.co.uk/
9
  */
10
 
@@ -270,7 +270,7 @@ class PI_SimpleTwitterTweets extends WP_Widget{
270
  // NEW Link Creation from clickable items in the text
271
  $linkCheck = preg_replace('/((http)+(s)?:\/\/[^<>\s]+)/i', '<a href="$0" target="_blank" rel="nofollow">$0</a>', $tweet->text );
272
  // Clickable Twitter names
273
- $personCheck = preg_replace('/[@]+([A-Za-z0-9-_]+)/', '<a href="http://twitter.com/$1" target="_blank" rel="nofollow">$1</a>', $linkCheck );
274
  // Clickable Twitter hash tags
275
  $text = preg_replace('/[#]+([A-Za-z0-9-_]+)/', '<a href="http://twitter.com/search?q=%23$1" target="_blank" rel="nofollow">$0</a>', $personCheck );
276
  // END TWEET CONTENT REGEX
4
  Plugin URI: http://www.planet-interactive.co.uk/simple-twitter-tweets
5
  Description: Display last x number tweets from Twitter API stream, store locally in dataabse to present past tweets when failure to access Twitters restrictive API occurs
6
  Author: Ashley Sheinwald
7
+ Version: 1.3.1
8
  Author URI: http://www.planet-interactive.co.uk/
9
  */
10
 
270
  // NEW Link Creation from clickable items in the text
271
  $linkCheck = preg_replace('/((http)+(s)?:\/\/[^<>\s]+)/i', '<a href="$0" target="_blank" rel="nofollow">$0</a>', $tweet->text );
272
  // Clickable Twitter names
273
+ $personCheck = preg_replace('/[@]+([A-Za-z0-9-_]+)/', '<a href="http://twitter.com/$1" target="_blank" rel="nofollow">@$1</a>', $linkCheck );
274
  // Clickable Twitter hash tags
275
  $text = preg_replace('/[#]+([A-Za-z0-9-_]+)/', '<a href="http://twitter.com/search?q=%23$1" target="_blank" rel="nofollow">$0</a>', $personCheck );
276
  // END TWEET CONTENT REGEX