Instagram Widget by WPZOOM - Version 1.8.1

Version Description

  • Fixed a minor bug for PHP 8.0
Download this release

Release Info

Developer WPZOOM
Plugin Icon 128x128 Instagram Widget by WPZOOM
Version 1.8.1
Comparing to
See all releases

Code changes from version 1.8.0 to 1.8.1

class-wpzoom-instagram-widget-api.php CHANGED
@@ -276,10 +276,14 @@ class Wpzoom_Instagram_Widget_API {
276
  return $this->processing_response_data( $data, $image_width, $image_resolution, $image_limit, $disable_video_thumbs );
277
  }
278
 
279
- public function processing_response_data( $data, $image_width, $image_resolution = 'default_algorithm', $image_limit, $disable_video_thumbs = false ) {
280
  $result = array();
281
  $username = '';
282
 
 
 
 
 
283
  foreach ( $data->data as $key => $item ) {
284
  if ( empty( $username ) ) {
285
  $username = $item->user->username;
276
  return $this->processing_response_data( $data, $image_width, $image_resolution, $image_limit, $disable_video_thumbs );
277
  }
278
 
279
+ public function processing_response_data( $data, $image_width, $image_resolution, $image_limit, $disable_video_thumbs = false ) {
280
  $result = array();
281
  $username = '';
282
 
283
+ if( empty( $image_resolution ) ) {
284
+ $image_resolution = 'default_algorithm';
285
+ }
286
+
287
  foreach ( $data->data as $key => $item ) {
288
  if ( empty( $username ) ) {
289
  $username = $item->user->username;
instagram-widget-by-wpzoom.php CHANGED
@@ -3,7 +3,7 @@
3
  * Plugin Name: WPZOOM Instagram Widget
4
  * Plugin URI: https://www.wpzoom.com/plugins/instagram-widget/
5
  * Description: Simple and lightweight widget for WordPress to display your Instagram feed
6
- * Version: 1.8.0
7
  * Author: WPZOOM
8
  * Author URI: https://www.wpzoom.com/
9
  * Text Domain: instagram-widget-by-wpzoom
@@ -19,7 +19,7 @@ if ( ! defined( 'ABSPATH' ) ) {
19
  }
20
 
21
  if ( ! defined( 'WPZOOM_INSTAGRAM_VERSION' ) ) {
22
- define( 'WPZOOM_INSTAGRAM_VERSION', '1.8.0' );
23
  }
24
 
25
  require_once plugin_dir_path( __FILE__ ) . 'class-wpzoom-instagram-image-uploader.php';
3
  * Plugin Name: WPZOOM Instagram Widget
4
  * Plugin URI: https://www.wpzoom.com/plugins/instagram-widget/
5
  * Description: Simple and lightweight widget for WordPress to display your Instagram feed
6
+ * Version: 1.8.1
7
  * Author: WPZOOM
8
  * Author URI: https://www.wpzoom.com/
9
  * Text Domain: instagram-widget-by-wpzoom
19
  }
20
 
21
  if ( ! defined( 'WPZOOM_INSTAGRAM_VERSION' ) ) {
22
+ define( 'WPZOOM_INSTAGRAM_VERSION', '1.8.1' );
23
  }
24
 
25
  require_once plugin_dir_path( __FILE__ ) . 'class-wpzoom-instagram-image-uploader.php';
readme.txt CHANGED
@@ -67,6 +67,9 @@ Make sure to connect your Instagram account with the plugin. You can do that in
67
 
68
  == Changelog ==
69
 
 
 
 
70
  = 1.8.0 =
71
  * NEW: Automatically refresh Instagram access token before it expires
72
  * NOTE: There are limitations to refresh access token for Instagram private accounts! You will need to reauthorize manually after access token expires
67
 
68
  == Changelog ==
69
 
70
+ = 1.8.1 =
71
+ * Fixed a minor bug for PHP 8.0
72
+
73
  = 1.8.0 =
74
  * NEW: Automatically refresh Instagram access token before it expires
75
  * NOTE: There are limitations to refresh access token for Instagram private accounts! You will need to reauthorize manually after access token expires