Changeset 622486
- Timestamp:
- 11/08/2012 08:44:30 AM (13 years ago)
- Location:
- widget-embed-lastest-tweets
- Files:
-
- 2 deleted
- 2 edited
- 3 copied
-
tags/0.3.6 (copied) (copied from widget-embed-lastest-tweets/trunk)
-
tags/0.3.6/readme.txt (copied) (copied from widget-embed-lastest-tweets/trunk/readme.txt) (1 diff)
-
tags/0.3.6/screenshot-1.png (deleted)
-
tags/0.3.6/screenshot-2.png (deleted)
-
tags/0.3.6/widget-embed-latest-tweets.php (copied) (copied from widget-embed-lastest-tweets/trunk/widget-embed-latest-tweets.php) (5 diffs)
-
trunk/readme.txt (modified) (1 diff)
-
trunk/widget-embed-latest-tweets.php (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
widget-embed-lastest-tweets/tags/0.3.6/readme.txt
r621683 r622486 57 57 == Changelog == 58 58 59 = 0.3.6 = 60 61 * fix : You can now show two instance of the widget with different usernames 62 59 63 = 0.3.5 = 60 64 -
widget-embed-lastest-tweets/tags/0.3.6/widget-embed-latest-tweets.php
r621683 r622486 4 4 * Plugin URI: http://www.arnaudbanvillet.com/blog/portfolio/widget-embed-latest-tweets/ 5 5 * Description: A Widget to show your latest tweets. Use the oEmbed methode and some cache. Just type your user name and the numbers of tweets you want to show. 6 * Version: 0.3. 56 * Version: 0.3.6 7 7 * Author: Arnaud Banvillet 8 8 * Author URI: http://www.arnaudbanvillet.com … … 74 74 if( !empty( $screen_name ) ){ 75 75 76 $last_tweet = get_transient('last_tweet ');76 $last_tweet = get_transient('last_tweet_' . $this->id); 77 77 78 78 if (false === $last_tweet) { 79 79 80 80 81 $this->welt_set_tweet_transient( $instance );82 83 84 $last_tweet = get_transient('last_tweet ');81 $this->welt_set_tweet_transient( $instance, false ); 82 83 84 $last_tweet = get_transient('last_tweet_' .$this->id); 85 85 86 86 } … … 90 90 foreach ($last_tweet as $tweet) { 91 91 92 $ id = $tweet->id_str;93 94 $last_tweet_html = get_transient('last_tweet_html_' . $ id);92 $tweet_id = $tweet->id_str; 93 94 $last_tweet_html = get_transient('last_tweet_html_' . $tweet_id); 95 95 96 96 echo $last_tweet_html->html; … … 140 140 $instance['lang'] = strip_tags($new_instance['lang']); 141 141 142 $this->welt_set_tweet_transient( $instance , true );142 $this->welt_set_tweet_transient( $instance , true ); 143 143 144 144 return $instance; … … 246 246 } 247 247 248 set_transient('last_tweet ', $last_tweet, 60 * 5);248 set_transient('last_tweet_' . $this->id , $last_tweet, 60 * 5); 249 249 250 250 foreach ($last_tweet as $tweet) { -
widget-embed-lastest-tweets/trunk/readme.txt
r621683 r622486 57 57 == Changelog == 58 58 59 = 0.3.6 = 60 61 * fix : You can now show two instance of the widget with different usernames 62 59 63 = 0.3.5 = 60 64 -
widget-embed-lastest-tweets/trunk/widget-embed-latest-tweets.php
r621683 r622486 4 4 * Plugin URI: http://www.arnaudbanvillet.com/blog/portfolio/widget-embed-latest-tweets/ 5 5 * Description: A Widget to show your latest tweets. Use the oEmbed methode and some cache. Just type your user name and the numbers of tweets you want to show. 6 * Version: 0.3. 56 * Version: 0.3.6 7 7 * Author: Arnaud Banvillet 8 8 * Author URI: http://www.arnaudbanvillet.com … … 74 74 if( !empty( $screen_name ) ){ 75 75 76 $last_tweet = get_transient('last_tweet ');76 $last_tweet = get_transient('last_tweet_' . $this->id); 77 77 78 78 if (false === $last_tweet) { 79 79 80 80 81 $this->welt_set_tweet_transient( $instance );82 83 84 $last_tweet = get_transient('last_tweet ');81 $this->welt_set_tweet_transient( $instance, false ); 82 83 84 $last_tweet = get_transient('last_tweet_' .$this->id); 85 85 86 86 } … … 90 90 foreach ($last_tweet as $tweet) { 91 91 92 $ id = $tweet->id_str;93 94 $last_tweet_html = get_transient('last_tweet_html_' . $ id);92 $tweet_id = $tweet->id_str; 93 94 $last_tweet_html = get_transient('last_tweet_html_' . $tweet_id); 95 95 96 96 echo $last_tweet_html->html; … … 140 140 $instance['lang'] = strip_tags($new_instance['lang']); 141 141 142 $this->welt_set_tweet_transient( $instance , true );142 $this->welt_set_tweet_transient( $instance , true ); 143 143 144 144 return $instance; … … 246 246 } 247 247 248 set_transient('last_tweet ', $last_tweet, 60 * 5);248 set_transient('last_tweet_' . $this->id , $last_tweet, 60 * 5); 249 249 250 250 foreach ($last_tweet as $tweet) {
Note: See TracChangeset
for help on using the changeset viewer.