WordPress.org

Plugin Directory

Changeset 349039


Ignore:
Timestamp:
02/22/11 08:35:53 (3 years ago)
Author:
kirilln
Message:
  • Bug fix: hashtag links in the infobox that appears after click on Twitter logo were broken
  • Bug fix: tweets not refreshed due to "jQuery.jsonp is not a function" error (thanks to Ryan M for reporting via GetSatisfaction)
  • Bug fix: Cache Manager installation failed with "Failed opening required 'uploader/pclzip.lib.php'" error (thanks to Lucas S for reporting via GetSatisfaction)
  • Bug fix: lists validation when saving widget settings - "json error: can't get json" (thanks to @aaronhudspeth for reporting via Twitter)
Location:
tweet-blender/trunk
Files:
1 added
5 edited

Legend:

Unmodified
Added
Removed
  • tweet-blender/trunk/js/main.js

    r348497 r349039  
    33 */ 
    44 
    5 var TB_version = '3.3.0',   // Plugin version  
     5var TB_version = '3.3.1',   // Plugin version  
    66TB_rateLimitData, 
    77TB_tmp, 
     
    122122    if (typeof(jQuery.toJSON) == 'undefined' && typeof(jQnc.toJSON) == 'function') { 
    123123        jQuery.toJSON = jQnc.toJSON; 
     124    } 
     125    if (typeof(jQuery.jsonp) == 'undefined' && typeof(jQnc.jsonp) == 'function') { 
     126        jQuery.jsonp = jQnc.jsonp; 
    124127    } 
    125128 
     
    478481            src = src.substr(0, colonPos); 
    479482        } 
    480         // if there is a modfier - strip it 
     483        // if there is a modifier - strip it 
    481484        if ((pipePos = src.indexOf('|')) > 0) { 
    482485            src = src.substr(0, pipePos); 
     
    489492        } 
    490493        else { 
    491             TB_config.widgets[widgetId].sourcesHTML += 'http://search.twitter.com/search?q=' + encodeURI(src); 
     494            TB_config.widgets[widgetId].sourcesHTML += 'http://search.twitter.com/search?q=' + escape(src); 
    492495        } 
    493496        TB_config.widgets[widgetId].sourcesHTML += '">' + src + '</a> '; 
     
    592595         
    593596        // special jsonp use case to ensure proper error handling 
    594         if (urlInfo.dtype == 'jsonp') { 
     597        if (urlInfo.dtype == 'jsonp' && typeof(jQuery.jsonp) != 'undefined') { 
    595598            jQuery.jsonp({ 
    596599                data:urlInfo.data, 
  • tweet-blender/trunk/lib/lib.php

    r348497 r349039  
    11<?php 
    22 
    3 // Version 3.3.0 
     3// Version 3.3.1 
    44 
    55// aliases for sources 
     
    800800            // Unpack 
    801801            echo "Unpacking... \n"; 
    802             require_once('uploader/pclzip.lib.php'); 
     802            class_exists('PclZip') || include_once dirname(__FILE__) . '/pclzip.lib.php'; 
    803803            $archive = new PclZip($file_name); 
    804804             
  • tweet-blender/trunk/readme.txt

    r348497 r349039  
    44Requires at least: 2.8.0 
    55Tested up to: 3.0.5 
    6 Stable tag: 3.3.0 
     6Stable tag: 3.3.1 
    77Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=5907095 
    88 
     
    177177== Changelog == 
    178178 
     179= 3.3.1 = 
     180* Bug fix: hashtag links in the infobox that appears after click on Twitter logo were broken 
     181* Bug fix: tweets not refreshed due to "jQuery.jsonp is not a function" error (thanks to Ryan M for reporting via GetSatisfaction) 
     182* Bug fix: Cache Manager installation failed with "Failed opening required 'uploader/pclzip.lib.php'" error (thanks to Lucas S for reporting via GetSatisfaction) 
     183* Bug fix: lists validation when saving widget settings - "json error: can't get json" (thanks to @aaronhudspeth for reporting via Twitter) 
     184 
    179185= 3.3.0 = 
    180186* New feature: ability to get Cache Manager addon ($) that allows to backup/restore cache and delete individual tweets 
  • tweet-blender/trunk/tweet-blender.php

    r348497 r349039  
    44Plugin URI: http://www.tweet-blender.com 
    55Description: Provides several Twitter widgets: show your own tweets, show tweets relevant to post's tags, show tweets for Twitter lists, show tweets for hashtags, show tweets for keyword searches, show favorite tweets. Multiple widgets on the same page are supported. Can combine sources and blend all of them into a single stream. 
    6 Version: 3.3.0 
     6Version: 3.3.1 
    77Author: Kirill Novitchenko 
    88Author URI: http://kirill-novitchenko.com 
  • tweet-blender/trunk/widget.php

    r348497 r349039  
    11<?php 
    22 
    3 // version 3.3.0 
     3// version 3.3.1 
    44 
    55class TweetBlender extends WP_Widget { 
     
    319319        // if it's a list, use list API 
    320320        if (stripos($src,'@') === 0 && stripos($src,'/') > 1) { 
    321             $apiUrl = 'http://api.twitter.com/1/' . substr($src,1,strpos($src,'/')) . '/lists/' . substr($src,strpos($src,'/')) . '/statuses.json'; 
     321            $apiUrl = 'http://api.twitter.com/1/' . substr($src,1,strpos($src,'/')) . 'lists' . substr($src,strpos($src,'/')) . '/statuses.json'; 
    322322        } 
    323323        // if it's a screen name, use timeline API (search would not give us private/public check) 
     
    336336        $http = new WP_Http; 
    337337        $result = $http->request($apiUrl); 
     338         
    338339 
    339340        // try to get data from Twitter 
     
    342343            if (!isset($jsonData)) { 
    343344                $source_check_result = ' ' . $src . ' - <span class="fail">FAIL</span>'; 
    344                 $log_msg = "($src) json error: can't get json\n"; 
     345                $log_msg = "($src) json error: can't get json\n" . $apiUrl; 
    345346            } 
    346347            // if Twitter reported error 
Note: See TracChangeset for help on using the changeset viewer.