Instagram Widget by WPZOOM - Version 1.8.3

Version Description

  • Fixed error 400 Bad Request
Download this release

Release Info

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

Code changes from version 1.8.2 to 1.8.3

class-wpzoom-instagram-image-uploader.php CHANGED
@@ -20,8 +20,10 @@ class WPZOOM_Instagram_Image_Uploader {
20
  /**
21
  * WPZOOM_Instagram_Image_Uploader constructor.
22
  */
23
- private function __construct() {
24
- // Private to disabled instantiation.
 
 
25
  }
26
 
27
  /**
@@ -30,9 +32,6 @@ class WPZOOM_Instagram_Image_Uploader {
30
  public static function getInstance() {
31
  if ( null === self::$instance ) {
32
  self::$instance = new self();
33
- add_action( 'init', self::$instance, 'custom_post_status' );
34
- add_action( 'wp_ajax_' . self::$ajax_action_name, array( self::$instance, 'get_image_async' ) );
35
- add_action( 'wp_ajax_nopriv_' . self::$ajax_action_name, array( self::$instance, 'get_image_async' ) );
36
  }
37
 
38
  return self::$instance;
@@ -375,3 +374,5 @@ class WPZOOM_Instagram_Image_Uploader {
375
  return $size;
376
  }
377
  }
 
 
20
  /**
21
  * WPZOOM_Instagram_Image_Uploader constructor.
22
  */
23
+ public function __construct() {
24
+ add_action( 'init', array( $this, 'custom_post_status' ) );
25
+ add_action( 'wp_ajax_' . self::$ajax_action_name, array( $this, 'get_image_async' ) );
26
+ add_action( 'wp_ajax_nopriv_' . self::$ajax_action_name, array( $this, 'get_image_async' ) );
27
  }
28
 
29
  /**
32
  public static function getInstance() {
33
  if ( null === self::$instance ) {
34
  self::$instance = new self();
 
 
 
35
  }
36
 
37
  return self::$instance;
374
  return $size;
375
  }
376
  }
377
+
378
+ WPZOOM_Instagram_Image_Uploader::getInstance();
class-wpzoom-instagram-widget-api.php CHANGED
@@ -280,7 +280,7 @@ class Wpzoom_Instagram_Widget_API {
280
  $result = array();
281
  $username = '';
282
 
283
- if( empty( $image_resolution ) ) {
284
  $image_resolution = 'default_algorithm';
285
  }
286
 
280
  $result = array();
281
  $username = '';
282
 
283
+ if ( empty( $image_resolution ) ) {
284
  $image_resolution = 'default_algorithm';
285
  }
286
 
class-wpzoom-instagram-widget.php CHANGED
@@ -122,7 +122,6 @@ class Wpzoom_Instagram_Widget extends WP_Widget {
122
  * @param array $instance Saved values from database.
123
  */
124
  public function widget( $args, $instance ) {
125
-
126
  $this->api = Wpzoom_Instagram_Widget_API::getInstance();
127
 
128
  $this->enqueue_scripts();
@@ -465,7 +464,6 @@ class Wpzoom_Instagram_Widget extends WP_Widget {
465
  * @return string|void
466
  */
467
  public function form( $instance ) {
468
-
469
  $this->api = Wpzoom_Instagram_Widget_API::getInstance();
470
 
471
  $instance = wp_parse_args( (array) $instance, $this->defaults );
122
  * @param array $instance Saved values from database.
123
  */
124
  public function widget( $args, $instance ) {
 
125
  $this->api = Wpzoom_Instagram_Widget_API::getInstance();
126
 
127
  $this->enqueue_scripts();
464
  * @return string|void
465
  */
466
  public function form( $instance ) {
 
467
  $this->api = Wpzoom_Instagram_Widget_API::getInstance();
468
 
469
  $instance = wp_parse_args( (array) $instance, $this->defaults );
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.2
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.2' );
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.3
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.3' );
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.2 =
71
  * Fixed compatibility with upcoming WordPress 5.8
72
  * Fixed a bug with Beaver Builder
67
 
68
  == Changelog ==
69
 
70
+ = 1.8.3 =
71
+ * Fixed error 400 Bad Request
72
+
73
  = 1.8.2 =
74
  * Fixed compatibility with upcoming WordPress 5.8
75
  * Fixed a bug with Beaver Builder