Plugin Directory

Changeset 578352


Ignore:
Timestamp:
07/28/2012 10:33:01 AM (14 years ago)
Author:
spectraweb
Message:

bugfix

Location:
wp-instagram-digest/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • wp-instagram-digest/trunk/readme.txt

    r578193 r578352  
    22Contributors: spectraweb
    33Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=Z5XN794FWSSZW
    4 Tags: instagram, gallery, automatic, cron
     4Tags: instagram, gallery, automatic, cron, digest, post
    55Requires at least: 3.0
    66Tested up to: 3.4.1
    7 Stable tag: 1.0.1
     7Stable tag: 1.0.2
    88License: GPLv2 or later
    99License URI: http://www.gnu.org/licenses/gpl-2.0.html
    1010
    11 This plugin creates daily posts with digest of latest Instagram photos.
     11This plugin creates daily posts with gallery of latest Instagram photos.
    1212
    1313== Description ==
    1414
    1515This plugin downloads your latest photos from Instagram and creates post with gallery.
     16
    1617
    1718== Installation ==
     
    3435== Changelog ==
    3536
     37= 1.0.2 =
     38* Fixed: Wrong update set
     39
    3640= 1.0.1 =
    3741* Added parameter with minimal gallery size to aviod creation stupid posts with single image
  • wp-instagram-digest/trunk/wp-instagram-digest.php

    r578193 r578352  
    33  Plugin Name: WP Instagram Digest
    44  Plugin URI: http://wordpress.org/extend/plugins/wp-instagram-digest/
    5   Description: This plugin creates daily posts with digest of latest Instagram photos.
     5  Description: This plugin creates daily posts with gallery of latest Instagram photos.
    66  Author: Spectraweb s.r.o.
    77  Author URI: http://www.spectraweb.cz
    8   Version: 1.0.1
     8  Version: 1.0.2
    99 */
    1010
     
    5252    register_setting('wp_instadigest', 'wp_instadigest_gallery_min_size');
    5353    //
    54     register_setting('wp_instadigest', 'wp_instadigest_last_update');
     54    //register_setting('wp_instadigest', 'wp_instadigest_last_update');
    5555}
    5656
     
    105105    // get request properties
    106106    $access_token = get_option('wp_instadigest_access_token');
    107     $timestamp = get_option('wp_instadigest_last_update');
     107    $timestamp = intval(get_option('wp_instadigest_last_update', time() - 86400 * 7));
    108108    $now = time();
    109109
     
    121121    else
    122122    {
    123         $timestamp = strtotime($timestamp);
     123        //$timestamp = strtotime($timestamp);
    124124    }
    125125
     
    136136        // issue request to instagram api
    137137        $response = wp_instadigest_get($url);
     138
     139        //echo '<pre>'; var_dump($response); echo '</pre>';
    138140
    139141        // check response for errors
     
    371373    $default_time = '09:00';
    372374    $default_min_size = 6;
     375    $default_last_update = time() - 86400 * 7;
    373376
    374377    // reschedule cron event
     
    583586    <?php
    584587    // DEBUG
    585     wp_instadigest_event();
    586 }
     588    //wp_instadigest_event();
     589}
Note: See TracChangeset for help on using the changeset viewer.