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

Version Description

  • Support to WordPress 5.0
  • Support to new Instagram API
Download this release

Release Info

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

Code changes from version 4.0.2 to 4.0.3

enjoyinstagram.php CHANGED
@@ -3,12 +3,12 @@
3
  Plugin Name: Enjoy Plugin for Instagram
4
  Plugin URI: http://www.mediabeta.com/enjoy-instagram/
5
  Description: Instagram Responsive Images Gallery and Carousel, works with Shortcodes and Widgets.
6
- Version: 4.0.2
7
  Author: Mediabeta Srl
8
  Author URI: http://www.mediabeta.com/team/
9
  */
10
 
11
- ! defined( 'ENJOYINSTAGRAM_VERSION' ) && define( 'ENJOYINSTAGRAM_VERSION', '4.0.2' );
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__ ) );
3
  Plugin Name: Enjoy Plugin for Instagram
4
  Plugin URI: http://www.mediabeta.com/enjoy-instagram/
5
  Description: Instagram Responsive Images Gallery and Carousel, works with Shortcodes and Widgets.
6
+ Version: 4.0.3
7
  Author: Mediabeta Srl
8
  Author URI: http://www.mediabeta.com/team/
9
  */
10
 
11
+ ! defined( 'ENJOYINSTAGRAM_VERSION' ) && define( 'ENJOYINSTAGRAM_VERSION', '4.0.3' );
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-admin.php CHANGED
@@ -88,8 +88,7 @@ class EnjoyInstagram_Admin {
88
  *
89
  * @param string $tab
90
  * @param array $params
91
- * @since 9.0.0
92
- * @author Francesco Licandro
93
  * @return string
94
  */
95
  public function build_admin_url( $tab, $params = array() ){
@@ -216,8 +215,7 @@ class EnjoyInstagram_Admin {
216
  /**
217
  * Manage Instagram response and add a new user
218
  *
219
- * @since 9.0.0
220
- * @author Francesco Licandro
221
  * @return void
222
  */
223
  public function add_user(){
@@ -248,8 +246,7 @@ class EnjoyInstagram_Admin {
248
  /**
249
  * Remove and user from plugin
250
  *
251
- * @since 9.0.0
252
- * @author Francesco Licandro
253
  * @return void
254
  */
255
  public function remove_user(){
@@ -274,8 +271,7 @@ class EnjoyInstagram_Admin {
274
  /**
275
  * Get Instagram login url
276
  *
277
- * @since 9.0.0
278
- * @author Francesco Licandro
279
  * @return string
280
  */
281
  public function get_instagram_login_url(){
88
  *
89
  * @param string $tab
90
  * @param array $params
91
+ * @since 4.0.0
 
92
  * @return string
93
  */
94
  public function build_admin_url( $tab, $params = array() ){
215
  /**
216
  * Manage Instagram response and add a new user
217
  *
218
+ * @since 4.0.0
 
219
  * @return void
220
  */
221
  public function add_user(){
246
  /**
247
  * Remove and user from plugin
248
  *
249
+ * @since 4.0.0
 
250
  * @return void
251
  */
252
  public function remove_user(){
271
  /**
272
  * Get Instagram login url
273
  *
274
+ * @since 4.0.0
 
275
  * @return string
276
  */
277
  public function get_instagram_login_url(){
includes/class.enjoyinstagram-api-connection.php CHANGED
@@ -11,7 +11,7 @@ class EnjoyInstagram_Api_Connection {
11
 
12
  /**
13
  * Single plugin instance
14
- * @since 9.0.0
15
  * @var \EnjoyInstagram_Api_Connection
16
  */
17
  protected static $instance;
@@ -48,10 +48,9 @@ class EnjoyInstagram_Api_Connection {
48
  /**
49
  * Handle curl connection to API
50
  *
51
- * @since 9.0.0
52
  * @param string $api_url
53
  * @return mixed
54
- * @author Francesco Licandro
55
  */
56
  private function _curl_connect( $api_url ){
57
  try {
@@ -59,7 +58,7 @@ class EnjoyInstagram_Api_Connection {
59
  curl_setopt( $connection_c, CURLOPT_URL, $api_url ); // API URL to connect
60
  curl_setopt( $connection_c, CURLOPT_RETURNTRANSFER, true ); // return the result, do not print
61
  curl_setopt( $connection_c, CURLOPT_TIMEOUT, 30 );
62
- curl_setopt($connection_c, CURLOPT_SSL_VERIFYPEER, false);
63
  $json_return = curl_exec( $connection_c ); // connect and get json data
64
  curl_close( $connection_c ); // close connection
65
  return json_decode( $json_return, true ); // decode and return
@@ -72,8 +71,7 @@ class EnjoyInstagram_Api_Connection {
72
  /**
73
  * Get data
74
  *
75
- * @since 9.0.0
76
- * @author Francesco Licandro
77
  * @param string $url
78
  * @param integer $count
79
  * @param array $hashtags
@@ -102,27 +100,36 @@ class EnjoyInstagram_Api_Connection {
102
  }
103
  }
104
 
105
- if( $count >= 33 && isset( $result['pagination']['next_url'] ) ){
106
- for( $i=1; $i<($count/33); $i++ ){
 
 
 
 
 
 
107
  $result = $this->_curl_connect( $result['pagination']['next_url'] );
108
- if( ! is_null($result['data']) ){
109
- foreach( $result['data'] as $post ) {
110
- if( count( $res['data'] ) == $count ) {
111
- break;
112
- }
113
 
114
- if( ! empty( $hashtags ) ){
115
- foreach( $hashtags as $hash ){
116
- if( in_array( $hash, $post["tags"] ) && ! in_array( $post, $res['data'] ) ){
117
- array_push( $res['data'], $post );
118
- }
 
 
 
119
  }
120
- } else {
121
- array_push( $res['data'], $post );
122
  }
 
 
123
  }
124
  }
125
- }
126
  }
127
 
128
  return $res;
@@ -131,10 +138,9 @@ class EnjoyInstagram_Api_Connection {
131
  /**
132
  * Get user info
133
  *
134
- * @since 9.0.0
135
  * @param string $user
136
  * @param string $access_token
137
- * @author Francesco Licandro
138
  * @return array
139
  */
140
  public function get_user_info( $access_token = '', $user = '' ){
@@ -147,55 +153,33 @@ class EnjoyInstagram_Api_Connection {
147
  }
148
 
149
  /**
150
- * Get user by name
151
  *
152
- * @param $user
 
153
  * @param integer $count
154
- * @param $account_name
155
  * @param string $hashtag
156
  * @return array|boolean
157
  */
158
- public function get_user_by_name( $user, $count, $account_name, $hashtag = '' ){
159
-
160
- if( ! $this->access_token ) {
161
- return false;
162
- }
163
-
164
- $user_name = strtolower( $account_name ); // sanitization
165
- $user_id = '';
166
- $url = "https://api.instagram.com/v1/users/search?q=".$user_name."&access_token=".$this->access_token;
167
- $json = $this->_curl_connect( $url );
168
- if( empty( $json ) || ! isset( $json['data'] ) ) {
169
- return false;
170
- }
171
-
172
- foreach( $json['data'] as $user ) {
173
- if($user['username'] == $user_name) {
174
- $user_id = $user['id'];
175
- }
176
- }
177
- if( ! $user_id ) {
178
- return false;
179
- }
180
 
181
- $hashtags = explode(',', $hashtag);
182
- $url = 'https://api.instagram.com/v1/users/'.$user_id.'/media/recent?count='.$count.'&access_token='.$access_token;
183
  return $this->_get_data( $url, $count, $hashtags );
184
  }
185
 
186
  /**
187
- * Get user
188
  *
189
- * @since 9.0.0
190
- * @author Francesco Licandro
191
- * @param string $user
192
  * @param integer $count
193
- * @param string $hashtag
194
  * @return array|boolean
195
  */
196
- public function get_user( $user, $count, $hashtag = "" ){
197
- $hashtags = explode( ',', $hashtag );
198
- $url = 'https://api.instagram.com/v1/users/self/media/recent?count='.$count.'&access_token='.$this->access_token;
 
199
 
200
  return $this->_get_data( $url, $count, $hashtags );
201
  }
@@ -203,8 +187,7 @@ class EnjoyInstagram_Api_Connection {
203
  /**
204
  * Get user code
205
  *
206
- * @since 9.0.0
207
- * @author Francesco Licandro
208
  * @param string $user
209
  * @param integer $count
210
  * @return string
@@ -224,8 +207,7 @@ class EnjoyInstagram_Api_Connection {
224
  /**
225
  * Get a media
226
  *
227
- * @since 9.0.0
228
- * @author Francesco Licandro
229
  * @param string $user
230
  * @param string $media
231
  * @return array
@@ -239,124 +221,6 @@ class EnjoyInstagram_Api_Connection {
239
  $url = 'https://api.instagram.com/v1/media/'.$media.'?access_token='.$this->access_token;
240
  return $this->_curl_connect( $url );
241
  }
242
-
243
- /**
244
- * Get likes
245
- *
246
- * @since 9.0.0
247
- * @author Francesco Licandro
248
- * @param string $user
249
- * @param integer $count
250
- * @return array
251
- */
252
- public function get_likes( $user, $count ){
253
-
254
- if( ! $this->access_token ) {
255
- return array();
256
- }
257
-
258
- $url = 'https://api.instagram.com/v1/users/self/media/liked?count='.$count.'&access_token='.$this->access_token;
259
-
260
- return $this->_get_data( $url, $count, array() );
261
- }
262
-
263
- /**
264
- * Get likes code
265
- *
266
- * @since 9.0.0
267
- * @author Francesco Licandro
268
- * @param string $user
269
- * @param string $count
270
- * @return string
271
- */
272
- public function get_likes_code($user,$count){
273
-
274
- if( ! $this->access_token ) {
275
- return '';
276
- }
277
-
278
- $url = 'https://api.instagram.com/v1/users/self/media/liked?count='.$count.'&access_token='.$this->access_token;
279
- $result = $this->_curl_connect( $url );
280
-
281
- return isset( $result['meta']['code'] ) ? $result['meta']['code'] : '';
282
- }
283
-
284
- /**
285
- * Get hash
286
- *
287
- * @author Francesco Licandro
288
- * @since 9.0.0
289
- * @param string $hashtag
290
- * @param string $count
291
- * @return array
292
- */
293
- public function get_hash( $hashtag, $count ){
294
-
295
- if( ! $this->access_token ) {
296
- return array();
297
- }
298
-
299
- // get first
300
- $hashtags = explode("%2C", $hashtag);
301
- $result = array();
302
- $res['data'] = array();
303
- $ht = '';
304
- $i = 0;
305
-
306
- while( sizeof( $res['data'] ) < $count ){
307
- if( $i && ( ! isset( $result[$ht][$i-1]['pagination']['next_url']) ) ) {
308
- break;
309
- }
310
- foreach( $hashtags as $ht ){
311
-
312
- if( $i ){
313
- $url = $result[$ht][$i-1]['pagination']['next_url'];
314
- } else {
315
- $url = 'https://api.instagram.com/v1/tags/'.$ht.'/media/recent?count='.$count.'&access_token='.$this->access_token;
316
- }
317
-
318
- $result[$ht][$i] = $this->_curl_connect( $url );
319
- if ( is_null( $result[$ht][$i] ) ){
320
- if( ( $key = array_search( $ht, $hashtags ) ) !== false ) {
321
- unset( $hashtags[$key] );
322
- }
323
- } else {
324
- foreach( $result[$ht][$i]['data'] as $post ) {
325
- array_push( $res['data'], $post );
326
- }
327
- }
328
- }
329
- $i++;
330
- }
331
-
332
- if( empty( $res['data'] ) ) {
333
- return array();
334
- }
335
-
336
- enjoyinstagram_shuffle_assoc( $res['data'] );
337
- $res['data'] = array_slice( $res['data'], 0, $count );
338
-
339
- return $res;
340
- }
341
-
342
- /**
343
- * Get hash code
344
- *
345
- * @param string $hashtag
346
- * @param string $count
347
- * @return string
348
- */
349
- public function get_hash_code( $hashtag, $count ){
350
-
351
- if( ! $this->access_token ) {
352
- return '';
353
- }
354
-
355
- $url = 'https://api.instagram.com/v1/tags/'.$hashtag.'/media/recent?count='.$count.'&access_token='.$this->access_token;
356
- $result = $this->_curl_connect( $url );
357
-
358
- return isset( $result['meta']['code'] ) ? $result['meta']['code'] : '';
359
- }
360
  }
361
 
362
  /**
11
 
12
  /**
13
  * Single plugin instance
14
+ * @since 4.0.0
15
  * @var \EnjoyInstagram_Api_Connection
16
  */
17
  protected static $instance;
48
  /**
49
  * Handle curl connection to API
50
  *
51
+ * @since 4.0.0
52
  * @param string $api_url
53
  * @return mixed
 
54
  */
55
  private function _curl_connect( $api_url ){
56
  try {
58
  curl_setopt( $connection_c, CURLOPT_URL, $api_url ); // API URL to connect
59
  curl_setopt( $connection_c, CURLOPT_RETURNTRANSFER, true ); // return the result, do not print
60
  curl_setopt( $connection_c, CURLOPT_TIMEOUT, 30 );
61
+ curl_setopt( $connection_c, CURLOPT_SSL_VERIFYPEER, false );
62
  $json_return = curl_exec( $connection_c ); // connect and get json data
63
  curl_close( $connection_c ); // close connection
64
  return json_decode( $json_return, true ); // decode and return
71
  /**
72
  * Get data
73
  *
74
+ * @since 4.0.0
 
75
  * @param string $url
76
  * @param integer $count
77
  * @param array $hashtags
100
  }
101
  }
102
 
103
+ if( count( $res['data'] ) < $count && isset( $result['pagination']['next_url'] ) ){
104
+
105
+ do {
106
+
107
+ if( empty( $result['pagination']['next_url'] ) ) {
108
+ break;
109
+ }
110
+
111
  $result = $this->_curl_connect( $result['pagination']['next_url'] );
112
+ if( empty( $result['data'] ) ) {
113
+ break;
114
+ }
115
+
116
+ foreach( $result['data'] as $post ) {
117
 
118
+ if( count( $res['data'] ) == $count ) {
119
+ break;
120
+ }
121
+
122
+ if( ! empty( $hashtags ) ){
123
+ foreach( $hashtags as $hash ){
124
+ if( in_array( $hash, $post["tags"] ) && ! in_array( $post, $res['data'] ) ){
125
+ array_push( $res['data'], $post );
126
  }
 
 
127
  }
128
+ } else {
129
+ array_push( $res['data'], $post );
130
  }
131
  }
132
+ } while( count( $res['data'] ) < $count );
133
  }
134
 
135
  return $res;
138
  /**
139
  * Get user info
140
  *
141
+ * @since 4.0.0
142
  * @param string $user
143
  * @param string $access_token
 
144
  * @return array
145
  */
146
  public function get_user_info( $access_token = '', $user = '' ){
153
  }
154
 
155
  /**
156
+ * Get user
157
  *
158
+ * @since 4.0.0
159
+ * @param string $user
160
  * @param integer $count
 
161
  * @param string $hashtag
162
  * @return array|boolean
163
  */
164
+ public function get_user( $user, $count = 20, $hashtag = "" ){
165
+ $hashtags = explode( ',', $hashtag );
166
+ $url = 'https://api.instagram.com/v1/users/self/media/recent?count='.$count.'&access_token='.$this->access_token;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
167
 
 
 
168
  return $this->_get_data( $url, $count, $hashtags );
169
  }
170
 
171
  /**
172
+ * Get hashtag media
173
  *
174
+ * @since 4.0.0
 
 
175
  * @param integer $count
176
+ * @param string $hashtags
177
  * @return array|boolean
178
  */
179
+ public function get_hash( $hashtags, $count = 20 ){
180
+ $hashtags = str_replace( '#', '', $hashtags );
181
+ $hashtags = explode( ',', $hashtags );
182
+ $url = 'https://api.instagram.com/v1/users/self/media/recent?count=1&access_token='.$this->access_token;
183
 
184
  return $this->_get_data( $url, $count, $hashtags );
185
  }
187
  /**
188
  * Get user code
189
  *
190
+ * @since 4.0.0
 
191
  * @param string $user
192
  * @param integer $count
193
  * @return string
207
  /**
208
  * Get a media
209
  *
210
+ * @since 4.0.0
 
211
  * @param string $user
212
  * @param string $media
213
  * @return array
221
  $url = 'https://api.instagram.com/v1/media/'.$media.'?access_token='.$this->access_token;
222
  return $this->_curl_connect( $url );
223
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
224
  }
225
 
226
  /**
includes/class.enjoyinstagram-shortcodes.php CHANGED
@@ -64,8 +64,8 @@ class EnjoyInstagram_Shortcodes {
64
  /**
65
  * Register common scripts
66
  *
67
- * @since 9.0.0
68
- * @author Francesco Licandro
69
  */
70
  public function register_scripts(){
71
  wp_register_script('owl', ENJOYINSTAGRAM_ASSETS_URL . '/js/owl.carousel.min.js', array('jquery'), ENJOYINSTAGRAM_VERSION );
@@ -85,8 +85,7 @@ class EnjoyInstagram_Shortcodes {
85
  /**
86
  * Enqueue scripts ans styles
87
  *
88
- * @since 9.0.0
89
- * @author Francesco Licandro
90
  */
91
  public function enqueue_scripts(){
92
 
@@ -112,7 +111,7 @@ class EnjoyInstagram_Shortcodes {
112
  /**
113
  * JS functions in head
114
  *
115
- * @since 9.0.0
116
  */
117
  public function functions_in_head(){
118
  ?>
@@ -130,8 +129,7 @@ class EnjoyInstagram_Shortcodes {
130
  /**
131
  * Get shortcode data
132
  *
133
- * @since 9.0.0
134
- * @author Francesco Licandro
135
  * @param string $type
136
  * @return array
137
  */
@@ -158,7 +156,6 @@ class EnjoyInstagram_Shortcodes {
158
  * Carousel shortcode callback
159
  *
160
  * @since 4.0.0
161
- * @author Francesco Licandro
162
  * @param array $atts
163
  * @return string
164
  */
@@ -191,7 +188,6 @@ class EnjoyInstagram_Shortcodes {
191
  * Grid shortcode callback
192
  *
193
  * @since 4.0.0
194
- * @author Francesco Licandro
195
  * @param array $atts
196
  * @return string
197
  */
@@ -222,7 +218,6 @@ class EnjoyInstagram_Shortcodes {
222
  * Carousel shortcode widget callback
223
  *
224
  * @since 4.0.0
225
- * @author Francesco Licandro
226
  * @param array $atts
227
  * @return string
228
  */
@@ -253,7 +248,6 @@ class EnjoyInstagram_Shortcodes {
253
  * Grid shortcode widget callback
254
  *
255
  * @since 4.0.0
256
- * @author Francesco Licandro
257
  * @param array $atts
258
  * @return string
259
  */
64
  /**
65
  * Register common scripts
66
  *
67
+ * @since 4.0.0
68
+ * @return void
69
  */
70
  public function register_scripts(){
71
  wp_register_script('owl', ENJOYINSTAGRAM_ASSETS_URL . '/js/owl.carousel.min.js', array('jquery'), ENJOYINSTAGRAM_VERSION );
85
  /**
86
  * Enqueue scripts ans styles
87
  *
88
+ * @since 4.0.0
 
89
  */
90
  public function enqueue_scripts(){
91
 
111
  /**
112
  * JS functions in head
113
  *
114
+ * @since 4.0.0
115
  */
116
  public function functions_in_head(){
117
  ?>
129
  /**
130
  * Get shortcode data
131
  *
132
+ * @since 4.0.0
 
133
  * @param string $type
134
  * @return array
135
  */
156
  * Carousel shortcode callback
157
  *
158
  * @since 4.0.0
 
159
  * @param array $atts
160
  * @return string
161
  */
188
  * Grid shortcode callback
189
  *
190
  * @since 4.0.0
 
191
  * @param array $atts
192
  * @return string
193
  */
218
  * Carousel shortcode widget callback
219
  *
220
  * @since 4.0.0
 
221
  * @param array $atts
222
  * @return string
223
  */
248
  * Grid shortcode widget callback
249
  *
250
  * @since 4.0.0
 
251
  * @param array $atts
252
  * @return string
253
  */
includes/functions.enjoyinstagram.php CHANGED
@@ -52,8 +52,7 @@ if( ! function_exists( 'enjoyinstagram_format_entry_before_print' ) ) {
52
  /**
53
  * Format an entry before print
54
  *
55
- * @since 9.0.0
56
- * @author Francesco Licandro
57
  * @param array $entry
58
  * @return array
59
  */
@@ -77,15 +76,15 @@ function get_user_info($access_token){
77
  }
78
  //ANDREA NEW FUNC
79
  function get_user_by_name($user,$count, $account_name, $hashtag = ""){
80
- return EnjoyInstagram_Api_Connection()->get_user_by_name( $user,$count, $account_name, $hashtag = "" );
81
  }
82
 
83
  function get_hash($hashtag,$count){
84
- return EnjoyInstagram_Api_Connection()->get_hash( $hashtag,$count );
85
  }
86
 
87
  function get_hash_code($hashtag,$count){
88
- return EnjoyInstagram_Api_Connection()->get_hash_code( $hashtag,$count );
89
  }
90
 
91
  function get_user($user,$count, $hashtag = ""){
@@ -101,11 +100,11 @@ function get_media($user,$media){
101
  }
102
 
103
  function get_likes($user,$count){
104
- return EnjoyInstagram_Api_Connection()->get_likes( $user,$count );
105
  }
106
 
107
  function get_likes_code($user,$count){
108
- return EnjoyInstagram_Api_Connection()->get_likes_code( $user,$count );
109
  }
110
 
111
  function replace4byte($string) {
52
  /**
53
  * Format an entry before print
54
  *
55
+ * @since 4.0.0
 
56
  * @param array $entry
57
  * @return array
58
  */
76
  }
77
  //ANDREA NEW FUNC
78
  function get_user_by_name($user,$count, $account_name, $hashtag = ""){
79
+ return array();
80
  }
81
 
82
  function get_hash($hashtag,$count){
83
+ return EnjoyInstagram_Api_Connection()->get_hash( $hashtag, $count );
84
  }
85
 
86
  function get_hash_code($hashtag,$count){
87
+ return '';
88
  }
89
 
90
  function get_user($user,$count, $hashtag = ""){
100
  }
101
 
102
  function get_likes($user,$count){
103
+ return array();
104
  }
105
 
106
  function get_likes_code($user,$count){
107
+ return '';
108
  }
109
 
110
  function replace4byte($string) {
includes/widgets/widgets.php CHANGED
@@ -12,8 +12,7 @@ class Slider_Widget extends WP_Widget {
12
  /**
13
  * Slider_Widget constructor.
14
  *
15
- * @since 9.0.0
16
- * @author Francesco Licandro
17
  */
18
  public function __construct() {
19
  parent::__construct(
12
  /**
13
  * Slider_Widget constructor.
14
  *
15
+ * @since 4.0.0
 
16
  */
17
  public function __construct() {
18
  parent::__construct(
includes/widgets/widgets_grid.php CHANGED
@@ -13,8 +13,7 @@ class Grid_Widget extends WP_Widget {
13
  /**
14
  * Grid_Widget constructor.
15
  *
16
- * @since 9.0.0
17
- * @author Francesco Licandro
18
  */
19
  public function __construct() {
20
  parent::__construct(
13
  /**
14
  * Grid_Widget constructor.
15
  *
16
+ * @since 4.0.0
 
17
  */
18
  public function __construct() {
19
  parent::__construct(
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: Instagram, Instagram feed, Instagram grid, Instagram carousel, Widget Instagram, Embed Instagram, Embed Instagram feed, Instagram feed on website, responsive carousel, WordPress carousel, Instagram gallery, Instagram WordPress, Instagram pictures
5
  Requires at least: 3.0.1
6
- Tested up to: 4.9
7
- Version: 4.0.2
8
- Stable tag: 4.0.2
9
  License: GPLv2 or later
10
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
11
 
@@ -192,6 +192,9 @@ In the Setting section yon can customize grid and/or Carousel view
192
 
193
  == Changelog ==
194
 
 
 
 
195
  = 4.0.2 =
196
  * Missing closing tag on carousel-widget.php
197
  = 4.0.1 =
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: Instagram, Instagram feed, Instagram grid, Instagram carousel, Widget Instagram, Embed Instagram, Embed Instagram feed, Instagram feed on website, responsive carousel, WordPress carousel, Instagram gallery, Instagram WordPress, Instagram pictures
5
  Requires at least: 3.0.1
6
+ Tested up to: 5.0
7
+ Version: 4.0.3
8
+ Stable tag: 4.0.3
9
  License: GPLv2 or later
10
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
11
 
192
 
193
  == Changelog ==
194
 
195
+ = 4.0.3 =
196
+ * Support to WordPress 5.0
197
+ * Support to new Instagram API
198
  = 4.0.2 =
199
  * Missing closing tag on carousel-widget.php
200
  = 4.0.1 =