Changeset 578352
- Timestamp:
- 07/28/2012 10:33:01 AM (14 years ago)
- Location:
- wp-instagram-digest/trunk
- Files:
-
- 2 edited
-
readme.txt (modified) (2 diffs)
-
wp-instagram-digest.php (modified) (7 diffs)
Legend:
- Unmodified
- Added
- Removed
-
wp-instagram-digest/trunk/readme.txt
r578193 r578352 2 2 Contributors: spectraweb 3 3 Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=Z5XN794FWSSZW 4 Tags: instagram, gallery, automatic, cron 4 Tags: instagram, gallery, automatic, cron, digest, post 5 5 Requires at least: 3.0 6 6 Tested up to: 3.4.1 7 Stable tag: 1.0. 17 Stable tag: 1.0.2 8 8 License: GPLv2 or later 9 9 License URI: http://www.gnu.org/licenses/gpl-2.0.html 10 10 11 This plugin creates daily posts with digestof latest Instagram photos.11 This plugin creates daily posts with gallery of latest Instagram photos. 12 12 13 13 == Description == 14 14 15 15 This plugin downloads your latest photos from Instagram and creates post with gallery. 16 16 17 17 18 == Installation == … … 34 35 == Changelog == 35 36 37 = 1.0.2 = 38 * Fixed: Wrong update set 39 36 40 = 1.0.1 = 37 41 * Added parameter with minimal gallery size to aviod creation stupid posts with single image -
wp-instagram-digest/trunk/wp-instagram-digest.php
r578193 r578352 3 3 Plugin Name: WP Instagram Digest 4 4 Plugin URI: http://wordpress.org/extend/plugins/wp-instagram-digest/ 5 Description: This plugin creates daily posts with digestof latest Instagram photos.5 Description: This plugin creates daily posts with gallery of latest Instagram photos. 6 6 Author: Spectraweb s.r.o. 7 7 Author URI: http://www.spectraweb.cz 8 Version: 1.0. 18 Version: 1.0.2 9 9 */ 10 10 … … 52 52 register_setting('wp_instadigest', 'wp_instadigest_gallery_min_size'); 53 53 // 54 register_setting('wp_instadigest', 'wp_instadigest_last_update');54 //register_setting('wp_instadigest', 'wp_instadigest_last_update'); 55 55 } 56 56 … … 105 105 // get request properties 106 106 $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)); 108 108 $now = time(); 109 109 … … 121 121 else 122 122 { 123 $timestamp = strtotime($timestamp);123 //$timestamp = strtotime($timestamp); 124 124 } 125 125 … … 136 136 // issue request to instagram api 137 137 $response = wp_instadigest_get($url); 138 139 //echo '<pre>'; var_dump($response); echo '</pre>'; 138 140 139 141 // check response for errors … … 371 373 $default_time = '09:00'; 372 374 $default_min_size = 6; 375 $default_last_update = time() - 86400 * 7; 373 376 374 377 // reschedule cron event … … 583 586 <?php 584 587 // DEBUG 585 wp_instadigest_event();586 } 588 //wp_instadigest_event(); 589 }
Note: See TracChangeset
for help on using the changeset viewer.