Plugin Directory

Changeset 1690588


Ignore:
Timestamp:
07/04/2017 01:36:08 PM (9 years ago)
Author:
enguerranws
Message:

Fix error if no number results are set.

Location:
import-tweets-as-wp-posts
Files:
21 added
3 edited

Legend:

Unmodified
Added
Removed
  • import-tweets-as-wp-posts/trunk/import-tweets-as-wp-posts.php

    r1660909 r1690588  
    55  Plugin URI: http://www.enguerranweiss.fr
    66  Description: Get a tweets list from a request (hashtag, user, free request) and add their content to your own Wordpress :)
    7   Version: 1.1
     7  Version: 1.2
    88  Author: Enguerran Weiss
    99  Author URI: http://www.enguerranweiss.fr
  • import-tweets-as-wp-posts/trunk/readme.txt

    r1660909 r1690588  
    44Tags: twitter, tweets, content, videos, enguerranws, twitter api, wordpress feed, import tweets, import twitter tweets
    55Requires at least: 3.0.1
    6 Tested up to: 4.7.5
    7 Stable tag: 1.1
     6Tested up to: 4.8
     7Stable tag: 1.2
    88License: GPLv2 or later
    99License URI: http://www.gnu.org/licenses/gpl-2.0.html
  • import-tweets-as-wp-posts/trunk/tweetie.min.js

    r1660909 r1690588  
    77(function ($) {
    88    'use strict';
     9   
     10    function isNumber(n) { return ! isNaN (o-0) && o !== null && o !== "" && o !== false; }
    911
    1012    $.fn.twittie = function () {
     
    98100
    99101        var that = this;
    100 
     102       
    101103        // Fetch tweets
    102104        $.ajax({
     
    108110            that.find('span').fadeOut('fast', function () {
    109111                that.html('<ul></ul>');
    110                
     112                if(!isNumber(settings.count)){
     113                    settings.count = 30;
     114                }
    111115                for (var i = 0; i < settings.count; i++) {
    112116                    var tweet = false;
Note: See TracChangeset for help on using the changeset viewer.