Twitter Widget Pro - Version 1.5.1

Version Description

  • Re-enables the caching that got inadvertantly disabled in 1.5.0.
Download this release

Release Info

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

Code changes from version 1.5.0 to 1.5.1

Files changed (3) hide show
  1. readme.txt +4 -1
  2. upgrade.html +1 -1
  3. wp-twitter-widget.php +2 -2
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.7
6
  Tested up to: 2.8.2
7
- Stable tag: 1.5.0
8
 
9
  A widget that properly handles twitter feeds, including parsing @username, #hashtags, and URLs into links. Requires PHP5.
10
 
@@ -46,6 +46,9 @@ Aparently the database queries required to display the friends feed was causing
46
 
47
  == Changelog ==
48
 
 
 
 
49
  = 1.5.0 =
50
  * This is an attempt at catching an elusive error. If you're getting an error referencing line 332, please try this new version.
51
 
4
  Tags: twitter, widget, feed
5
  Requires at least: 2.7
6
  Tested up to: 2.8.2
7
+ Stable tag: 1.5.1
8
 
9
  A widget that properly handles twitter feeds, including parsing @username, #hashtags, and URLs into links. Requires PHP5.
10
 
46
 
47
  == Changelog ==
48
 
49
+ = 1.5.1 =
50
+ * Re-enables the caching that got inadvertantly disabled in 1.5.0.
51
+
52
  = 1.5.0 =
53
  * This is an attempt at catching an elusive error. If you're getting an error referencing line 332, please try this new version.
54
 
upgrade.html CHANGED
@@ -1,4 +1,4 @@
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>This is an attempt at catching an elusive error. If you're getting an error referencing line 332, please try this new version.</li>
4
  </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>Re-enables the caching that got inadvertantly disabled in 1.5.0.</li>
4
  </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: 1.5.0
7
  * Author: Aaron D. Campbell
8
  * Author URI: http://xavisys.com/
9
  * Text Domain: twitter-widget-pro
@@ -259,7 +259,7 @@ class wpTwitterWidget
259
  $tweets = get_option("wptw-{$feedHash}");
260
  $cacheAge = get_option("wptw-{$feedHash}-time");
261
  //If we don't have cache or it's more than 5 minutes old
262
- if ( true || empty($tweets) || (time() - $cacheAge) > 300 ) {
263
  try {
264
  $tweets = $this->_parseFeed($widgetOptions);
265
  update_option("wptw-{$feedHash}", $tweets);
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.5.1
7
  * Author: Aaron D. Campbell
8
  * Author URI: http://xavisys.com/
9
  * Text Domain: twitter-widget-pro
259
  $tweets = get_option("wptw-{$feedHash}");
260
  $cacheAge = get_option("wptw-{$feedHash}-time");
261
  //If we don't have cache or it's more than 5 minutes old
262
+ if ( empty($tweets) || (time() - $cacheAge) > 300 ) {
263
  try {
264
  $tweets = $this->_parseFeed($widgetOptions);
265
  update_option("wptw-{$feedHash}", $tweets);