All-in-One Video Gallery - Version 1.6.9

Version Description

  • Tweak: "Autoplay" disabled in the default plugin settings since the browsers don't like this option.
  • Fix: Private Vimeo videos not working when configured to "Use Native Controls".
Download this release

Release Info

Developer plugins360
Plugin Icon 128x128 All-in-One Video Gallery
Version 1.6.9
Comparing to
See all releases

Code changes from version 1.6.7 to 1.6.9

README.txt CHANGED
@@ -6,7 +6,7 @@ Tags: video player, video gallery, youtube gallery, vimeo gallery, livestream
6
Requires at least: 4.7.0
7
Tested up to: 5.3
8
Requires PHP: 5.3.0
9
- Stable tag: 1.6.7
10
License: GPLv2 or later
11
License URI: http://www.gnu.org/licenses/gpl-2.0.html
12
@@ -110,6 +110,15 @@ Please describe your issue and submit a ticket on our plugin support forum, you
110
111
== Changelog ==
112
113
= 1.6.7 =
114
115
* Fix: Subcategories showing when 'hierarchical' disabled.
@@ -242,6 +251,6 @@ Please describe your issue and submit a ticket on our plugin support forum, you
242
243
== Upgrade Notice ==
244
245
- = 1.6.7 =
246
247
- Introduces several bug fixes, new features & enhancements. [See changelog](https://wordpress.org/plugins/all-in-one-video-gallery/#developers)
6
Requires at least: 4.7.0
7
Tested up to: 5.3
8
Requires PHP: 5.3.0
9
+ Stable tag: 1.6.9
10
License: GPLv2 or later
11
License URI: http://www.gnu.org/licenses/gpl-2.0.html
12
110
111
== Changelog ==
112
113
+ = 1.6.9 =
114
+
115
+ * Tweak: "Autoplay" disabled in the default plugin settings since the browsers don't like this option.
116
+ * Fix: Private Vimeo videos not working when configured to "Use Native Controls".
117
+
118
+ = 1.6.8 =
119
+
120
+ * Fix: Thumbnail images in the slider template not clickable.
121
+
122
= 1.6.7 =
123
124
* Fix: Subcategories showing when 'hierarchical' disabled.
251
252
== Upgrade Notice ==
253
254
+ = 1.6.9 =
255
256
+ Private Vimeo videos not working when configured to "Use Native Controls". "Autoplay" disabled in the default plugin settings since the browsers don't like this option.
all-in-one-video-gallery.php CHANGED
@@ -11,7 +11,7 @@
11
* Plugin Name: All-in-One Video Gallery
12
* Plugin URI: https://plugins360.com/all-in-one-video-gallery/
13
* Description: No coding required. A Responsive & Lightweight video gallery plugin. HTML5 Player, Categories, Visual Builder (Gutenberg), Search Form, Comments, Social Sharing and everything you will need to build a YouTube/Vimeo like video sharing website.
14
- * Version: 1.6.7
15
* Author: Team Plugins360
16
* Author URI: https://plugins360.com
17
* License: GPL-2.0+
@@ -76,7 +76,7 @@ if ( !function_exists( 'aiovg_fs' ) ) {
76
77
// The current version of the plugin
78
if ( !defined( 'AIOVG_PLUGIN_VERSION' ) ) {
79
- define( 'AIOVG_PLUGIN_VERSION', '1.6.7' );
80
}
81
// The unique identifier of the plugin
82
if ( !defined( 'AIOVG_PLUGIN_SLUG' ) ) {
11
* Plugin Name: All-in-One Video Gallery
12
* Plugin URI: https://plugins360.com/all-in-one-video-gallery/
13
* Description: No coding required. A Responsive & Lightweight video gallery plugin. HTML5 Player, Categories, Visual Builder (Gutenberg), Search Form, Comments, Social Sharing and everything you will need to build a YouTube/Vimeo like video sharing website.
14
+ * Version: 1.6.9
15
* Author: Team Plugins360
16
* Author URI: https://plugins360.com
17
* License: GPL-2.0+
76
77
// The current version of the plugin
78
if ( !defined( 'AIOVG_PLUGIN_VERSION' ) ) {
79
+ define( 'AIOVG_PLUGIN_VERSION', '1.6.9' );
80
}
81
// The unique identifier of the plugin
82
if ( !defined( 'AIOVG_PLUGIN_SLUG' ) ) {
includes/functions.php CHANGED
@@ -345,7 +345,7 @@ function aiovg_get_default_settings() {
345
'aiovg_player_settings' => array(
346
'width' => '',
347
'ratio' => 56.25,
348
- 'autoplay' => 1,
349
'loop' => 0,
350
'muted' => 0,
351
'preload' => 'metadata',
@@ -1373,24 +1373,41 @@ function aiovg_get_vimeo_oembed_data( $url ) {
1373
'thumbnail_url' => ''
1374
);
1375
1376
- if ( ! empty( $url ) ) {
1377
$vimeo_response = wp_remote_get( 'https://vimeo.com/api/oembed.json?url=' . urlencode( $url ) );
1378
1379
- if ( ! is_wp_error( $vimeo_response ) ) {
1380
$vimeo_response = json_decode( $vimeo_response['body'] );
1381
1382
- $data = array(
1383
- 'video_id' => $vimeo_response->video_id,
1384
- 'video_url' => 'https://vimeo.com/' . $vimeo_response->video_id,
1385
- 'thumbnail_url' => $vimeo_response->thumbnail_url
1386
- );
1387
1388
- // Find large thumbnail using the Vimeo API v2
1389
- $vimeo_response = wp_remote_get( 'https://vimeo.com/api/v2/video/' . $vimeo_response->video_id . '.php' );
1390
1391
- if ( ! is_wp_error( $vimeo_response ) ) {
1392
$vimeo_response = unserialize( $vimeo_response['body'] );
1393
- $data['thumbnail_url'] = $vimeo_response[0]['thumbnail_large'];
1394
}
1395
}
1396
}
345
'aiovg_player_settings' => array(
346
'width' => '',
347
'ratio' => 56.25,
348
+ 'autoplay' => 0,
349
'loop' => 0,
350
'muted' => 0,
351
'preload' => 'metadata',
1373
'thumbnail_url' => ''
1374
);
1375
1376
+ if ( ! empty( $url ) ) {
1377
$vimeo_response = wp_remote_get( 'https://vimeo.com/api/oembed.json?url=' . urlencode( $url ) );
1378
1379
+ if ( is_array( $vimeo_response ) && ! is_wp_error( $vimeo_response ) ) {
1380
$vimeo_response = json_decode( $vimeo_response['body'] );
1381
1382
+ if ( isset( $vimeo_response->video_id ) ) {
1383
+ $data = array(
1384
+ 'video_id' => $vimeo_response->video_id,
1385
+ 'video_url' => 'https://vimeo.com/' . $vimeo_response->video_id,
1386
+ 'thumbnail_url' => $vimeo_response->thumbnail_url
1387
+ );
1388
+ }
1389
+ }
1390
1391
+ // Fallback to our old method to get the Vimeo ID
1392
+ if ( empty( $data['video_id'] ) ) {
1393
+ $is_vimeo = preg_match( '/vimeo\.com/i', $url );
1394
1395
+ if ( $is_vimeo ) {
1396
+ $data['video_id'] = preg_replace( '/[^\/]+[^0-9]|(\/)/', '', rtrim( $url, '/' ) );
1397
+ $data['video_url'] = 'https://vimeo.com/' . $data['video_id'];
1398
+ }
1399
+ }
1400
+
1401
+ // Find large thumbnail using the Vimeo API v2
1402
+ if ( ! empty( $data['video_id'] ) ) {
1403
+ $vimeo_response = wp_remote_get( 'https://vimeo.com/api/v2/video/' . $data['video_id'] . '.php' );
1404
+
1405
+ if ( is_array( $vimeo_response ) && ! is_wp_error( $vimeo_response ) ) {
1406
$vimeo_response = unserialize( $vimeo_response['body'] );
1407
+
1408
+ if ( is_array( $vimeo_response ) && isset( $vimeo_response[0]['thumbnail_large'] ) ) {
1409
+ $data['thumbnail_url'] = $vimeo_response[0]['thumbnail_large'];
1410
+ }
1411
}
1412
}
1413
}