Enjoy Instagram feed on website with WordPress Widget and Shortcode - Version 5.0.9

Version Description

  • Instagram cdn url refresh rate
Download this release

Release Info

Developer designemotions
Plugin Icon 128x128 Enjoy Instagram feed on website with WordPress Widget and Shortcode
Version 5.0.9
Comparing to
See all releases

Code changes from version 5.0.8 to 5.0.9

enjoyinstagram.php CHANGED
@@ -2,13 +2,13 @@
2
  /*
3
  Plugin Name: Enjoy Plugin for Instagram
4
  Description: Instagram Responsive Images Gallery and Carousel, works with Shortcodes and Widgets.
5
- Version: 5.0.8
6
  Author: Mediabeta Srl
7
  Text Domain: enjoy-instagram-instagram-responsive-images-gallery-and-carousel
8
  Author URI: http://www.mediabeta.com/team/
9
  */
10
 
11
- ! defined( 'ENJOYINSTAGRAM_VERSION' ) && define( 'ENJOYINSTAGRAM_VERSION', '5.0.8' );
12
  ! defined( 'ENJOYINSTAGRAM_FILE' ) && define( 'ENJOYINSTAGRAM_FILE', __FILE__ );
13
  ! defined( 'ENJOYINSTAGRAM_URL' ) && define( 'ENJOYINSTAGRAM_URL', plugin_dir_url( __FILE__ ) );
14
  ! defined( 'ENJOYINSTAGRAM_DIR' ) && define( 'ENJOYINSTAGRAM_DIR', plugin_dir_path( __FILE__ ) );
2
  /*
3
  Plugin Name: Enjoy Plugin for Instagram
4
  Description: Instagram Responsive Images Gallery and Carousel, works with Shortcodes and Widgets.
5
+ Version: 5.0.9
6
  Author: Mediabeta Srl
7
  Text Domain: enjoy-instagram-instagram-responsive-images-gallery-and-carousel
8
  Author URI: http://www.mediabeta.com/team/
9
  */
10
 
11
+ ! defined( 'ENJOYINSTAGRAM_VERSION' ) && define( 'ENJOYINSTAGRAM_VERSION', '5.0.9' );
12
  ! defined( 'ENJOYINSTAGRAM_FILE' ) && define( 'ENJOYINSTAGRAM_FILE', __FILE__ );
13
  ! defined( 'ENJOYINSTAGRAM_URL' ) && define( 'ENJOYINSTAGRAM_URL', plugin_dir_url( __FILE__ ) );
14
  ! defined( 'ENJOYINSTAGRAM_DIR' ) && define( 'ENJOYINSTAGRAM_DIR', plugin_dir_path( __FILE__ ) );
includes/class.enjoyinstagram-api-connection.php CHANGED
@@ -314,7 +314,7 @@ class EnjoyInstagram_Api_Connection {
314
  if ( isset( $media['thumbnail_url'] ) ) {
315
  $thumb = $media['thumbnail_url'];
316
  } else if ( $media['media_type'] === 'IMAGE' || $media['media_type'] === 'CAROUSEL_ALBUM' ) {
317
- $thumb = $media['permalink'] . 'media?site=t';
318
  }
319
 
320
  $return[] = array(
314
  if ( isset( $media['thumbnail_url'] ) ) {
315
  $thumb = $media['thumbnail_url'];
316
  } else if ( $media['media_type'] === 'IMAGE' || $media['media_type'] === 'CAROUSEL_ALBUM' ) {
317
+ $thumb = $media['permalink'] . 'media?size=m';
318
  }
319
 
320
  $return[] = array(
includes/class.enjoyinstagram.php CHANGED
@@ -168,22 +168,18 @@ final class EnjoyInstagram {
168
 
169
  if ( empty( $this->_users ) || defined( 'DOING_AJAX' ) ) {
170
  return;
171
- };
172
 
173
  $times = get_option( 'enjoyinstagram_sync_times', array() );
174
  $current = time();
175
 
176
  foreach ( $this->_users as $user => $user_data ) {
177
  $latest = isset( $times[ $user ] ) ? intval( $times[ $user ] ) : 0;
178
- if ( $current > ( $latest + DAY_IN_SECONDS ) ) {
179
  $this->sync_users_data( $user ); // sync also data
180
  $this->sync_media_event( $user, 'all' );
181
  // update time
182
  $times[ $user ] = $current;
183
- } elseif ( $force || ( $current > ( $latest + ( 5 * MINUTE_IN_SECONDS ) ) ) ) {
184
- $this->sync_media_event( $user, 'latest' );
185
- // update time
186
- $times[ $user ] = $current;
187
  }
188
  }
189
 
168
 
169
  if ( empty( $this->_users ) || defined( 'DOING_AJAX' ) ) {
170
  return;
171
+ }
172
 
173
  $times = get_option( 'enjoyinstagram_sync_times', array() );
174
  $current = time();
175
 
176
  foreach ( $this->_users as $user => $user_data ) {
177
  $latest = isset( $times[ $user ] ) ? intval( $times[ $user ] ) : 0;
178
+ if ( $current > ( $latest + HOUR_IN_SECONDS ) || $force ) {
179
  $this->sync_users_data( $user ); // sync also data
180
  $this->sync_media_event( $user, 'all' );
181
  // update time
182
  $times[ $user ] = $current;
 
 
 
 
183
  }
184
  }
185
 
readme.txt CHANGED
@@ -3,9 +3,9 @@ Contributors: mediabeta
3
  Donate link: https://www.google.com/url?q=https%3A%2F%2Fwww.paypal.com%2Fcgi-bin%2Fwebscr%3Fcmd%3D_s-xclick%26hosted_button_id%3D8MXZ37DWHAX46&sa=D&sntz=1&usg=AFQjCNFHixLdowdc2AAEXDYmM9tQBl-TXQ
4
  Tags: social feed, instagram carousel, social media feed, instagram widget, instagram feed
5
  Requires at least: 4.0
6
- Tested up to: 5.5.1
7
- Version: 5.0.8
8
- Stable tag: 5.0.8
9
  License: GPLv2 or later
10
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
11
 
@@ -35,7 +35,7 @@ Once you have installed our plugin Enjoy Social Feed Plugin for WordPress, thank
35
 
36
  == BASIC FEATURES ==
37
 
38
- * NEW TEMPLATE for INSTAGRAM CAROUSEL FEED: Showcase and Polaroid
39
  * NEW —> Display Instagram feed for Personal or Business Instagram account
40
  * NEW —> Hashtag-based Instagram feed to show photos by Instagram hashtag, also public hashtag
41
  * Profile-based Instagram feed to show photos by Instagram profiles
@@ -212,6 +212,8 @@ In the Setting section yon can customize grid and/or Carousel view
212
 
213
  == Changelog ==
214
 
 
 
215
  = 5.0.8 =
216
  * Add Showcase and Polaroid templates for Instagram Carousel feed
217
  = 5.0.7 =
3
  Donate link: https://www.google.com/url?q=https%3A%2F%2Fwww.paypal.com%2Fcgi-bin%2Fwebscr%3Fcmd%3D_s-xclick%26hosted_button_id%3D8MXZ37DWHAX46&sa=D&sntz=1&usg=AFQjCNFHixLdowdc2AAEXDYmM9tQBl-TXQ
4
  Tags: social feed, instagram carousel, social media feed, instagram widget, instagram feed
5
  Requires at least: 4.0
6
+ Tested up to: 5.4
7
+ Version: 5.0.9
8
+ Stable tag: 5.0.9
9
  License: GPLv2 or later
10
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
11
 
35
 
36
  == BASIC FEATURES ==
37
 
38
+ = * NEW TEMPLATE for INSTAGRAM CAROUSEL FEED: Showcase and Polaroid =
39
  * NEW —> Display Instagram feed for Personal or Business Instagram account
40
  * NEW —> Hashtag-based Instagram feed to show photos by Instagram hashtag, also public hashtag
41
  * Profile-based Instagram feed to show photos by Instagram profiles
212
 
213
  == Changelog ==
214
 
215
+ = 5.0.9 =
216
+ * Instagram cdn url refresh rate
217
  = 5.0.8 =
218
  * Add Showcase and Polaroid templates for Instagram Carousel feed
219
  = 5.0.7 =