Video Embed & Thumbnail Generator - Version 4.6.19

Version Description

  • November 2, 2017 =
  • Fixed shorthand array declaration to retain compatiblity with versions of PHP older than 5.4.
Download this release

Release Info

Developer kylegilman
Plugin Icon 128x128 Video Embed & Thumbnail Generator
Version 4.6.19
Comparing to
See all releases

Code changes from version 4.6.18 to 4.6.19

readme.txt CHANGED
@@ -4,7 +4,7 @@ Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=kyleg
4
  Tags: video, video player, video gallery, video thumbnail, ffmpeg, resolution
5
  Requires at least: 4.4
6
  Tested up to: 4.8
7
- Stable tag: 4.6.18
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -246,6 +246,9 @@ Enter the username & password in the plugin settings "FFMPEG Settings" tab, or u
246
 
247
  == Changelog ==
248
 
 
 
 
249
  = 4.6.18 - November 2, 2017 =
250
  * Updated Video.js to version 5.20.2
251
  * No longer double encoding 360p formats for 360p or lower resolution original videos.
4
  Tags: video, video player, video gallery, video thumbnail, ffmpeg, resolution
5
  Requires at least: 4.4
6
  Tested up to: 4.8
7
+ Stable tag: 4.6.19
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
246
 
247
  == Changelog ==
248
 
249
+ = 4.6.19 - November 2, 2017 =
250
+ * Fixed shorthand array declaration to retain compatiblity with versions of PHP older than 5.4.
251
+
252
  = 4.6.18 - November 2, 2017 =
253
  * Updated Video.js to version 5.20.2
254
  * No longer double encoding 360p formats for 360p or lower resolution original videos.
video-embed-thumbnail-generator.php CHANGED
@@ -3,7 +3,7 @@
3
  Plugin Name: Video Embed & Thumbnail Generator
4
  Plugin URI: http://www.kylegilman.net/2011/01/18/video-embed-thumbnail-generator-wordpress-plugin/
5
  Description: Generates thumbnails, HTML5-compliant videos, and embed codes for locally hosted videos. Requires FFMPEG or LIBAV for encoding.
6
- Version: 4.6.18
7
  Author: Kyle Gilman
8
  Author URI: http://www.kylegilman.net/
9
  Text Domain: video-embed-thumbnail-generator
@@ -60,7 +60,7 @@ function kgvid_default_options_fn() {
60
  $edit_others_capable = kgvid_check_if_capable('edit_others_posts');
61
 
62
  $options = array(
63
- "version" => '4.6.18',
64
  "embed_method" => "Video.js",
65
  "jw_player_id" => "",
66
  "template" => false,
@@ -822,15 +822,16 @@ function kgvid_url_mime_type($url, $post_id = false) {
822
  $mime_type = '';
823
  $url_extension = '';
824
 
825
- $context_options = ( [
826
- 'ssl' => [
827
  'verify_peer' => false,
828
  'verify_peer_name' => false,
829
- ],
830
- 'http' => [
831
  'method' => 'HEAD'
832
- ]
833
- ]);
 
834
  $context = stream_context_create($context_options);
835
 
836
  $fp = fopen($url, 'r', null, $context);
3
  Plugin Name: Video Embed & Thumbnail Generator
4
  Plugin URI: http://www.kylegilman.net/2011/01/18/video-embed-thumbnail-generator-wordpress-plugin/
5
  Description: Generates thumbnails, HTML5-compliant videos, and embed codes for locally hosted videos. Requires FFMPEG or LIBAV for encoding.
6
+ Version: 4.6.19
7
  Author: Kyle Gilman
8
  Author URI: http://www.kylegilman.net/
9
  Text Domain: video-embed-thumbnail-generator
60
  $edit_others_capable = kgvid_check_if_capable('edit_others_posts');
61
 
62
  $options = array(
63
+ "version" => '4.6.19',
64
  "embed_method" => "Video.js",
65
  "jw_player_id" => "",
66
  "template" => false,
822
  $mime_type = '';
823
  $url_extension = '';
824
 
825
+ $context_options = array(
826
+ 'ssl' => array(
827
  'verify_peer' => false,
828
  'verify_peer_name' => false,
829
+ ),
830
+ 'http' => array(
831
  'method' => 'HEAD'
832
+ )
833
+ );
834
+
835
  $context = stream_context_create($context_options);
836
 
837
  $fp = fopen($url, 'r', null, $context);