Version Description
- Fixed bug with image download test
Download this release
Release Info
Developer | sutherlandboswell |
Plugin | Video Thumbnails |
Version | 2.4.2 |
Comparing to | |
See all releases |
Code changes from version 2.4.1 to 2.4.2
- readme.txt +4 -1
- video-thumbnails.php +4 -4
readme.txt
CHANGED
@@ -4,7 +4,7 @@ Donate link: http://wie.ly/u/donate
|
|
4 |
Tags: Video, Thumbnails, YouTube, Vimeo, Vine, Twitch, Dailymotion, Youku, Rutube, Featured Image
|
5 |
Requires at least: 3.1
|
6 |
Tested up to: 3.8
|
7 |
-
Stable tag: 2.4.
|
8 |
|
9 |
Video Thumbnails simplifies the process of automatically displaying video thumbnails in your WordPress template.
|
10 |
|
@@ -111,6 +111,9 @@ The Vimeo API has a rate limit, so in rare cases you may exceed this limit. Try
|
|
111 |
|
112 |
== Changelog ==
|
113 |
|
|
|
|
|
|
|
114 |
= 2.4.1 =
|
115 |
* Added support for YouTube videos using LazyYT.js
|
116 |
* Better Google Drive support
|
4 |
Tags: Video, Thumbnails, YouTube, Vimeo, Vine, Twitch, Dailymotion, Youku, Rutube, Featured Image
|
5 |
Requires at least: 3.1
|
6 |
Tested up to: 3.8
|
7 |
+
Stable tag: 2.4.2
|
8 |
|
9 |
Video Thumbnails simplifies the process of automatically displaying video thumbnails in your WordPress template.
|
10 |
|
111 |
|
112 |
== Changelog ==
|
113 |
|
114 |
+
= 2.4.2 =
|
115 |
+
* Fixed bug with image download test
|
116 |
+
|
117 |
= 2.4.1 =
|
118 |
* Added support for YouTube videos using LazyYT.js
|
119 |
* Better Google Drive support
|
video-thumbnails.php
CHANGED
@@ -5,7 +5,7 @@ Plugin URI: http://refactored.co/plugins/video-thumbnails
|
|
5 |
Description: Automatically retrieve video thumbnails for your posts and display them in your theme. Supports YouTube, Vimeo, Facebook, Vine, Justin.tv, Twitch, Dailymotion, Metacafe, Blip, Google Drive, Funny or Die, CollegeHumor, MPORA, Wistia, Youku, and Rutube.
|
6 |
Author: Sutherland Boswell
|
7 |
Author URI: http://sutherlandboswell.com
|
8 |
-
Version: 2.4.
|
9 |
License: GPL2
|
10 |
*/
|
11 |
/* Copyright 2014 Sutherland Boswell (email : sutherland.boswell@gmail.com)
|
@@ -28,7 +28,7 @@ License: GPL2
|
|
28 |
|
29 |
define( 'VIDEO_THUMBNAILS_PATH', dirname(__FILE__) );
|
30 |
define( 'VIDEO_THUMBNAILS_FIELD', '_video_thumbnail' );
|
31 |
-
define( 'VIDEO_THUMBNAILS_VERSION', '2.4.
|
32 |
|
33 |
// Providers
|
34 |
require_once( VIDEO_THUMBNAILS_PATH . '/php/providers/class-video-thumbnails-providers.php' );
|
@@ -288,7 +288,7 @@ class Video_Thumbnails {
|
|
288 |
* @param int $post_id The ID of the post to create the filename for
|
289 |
* @return string A filename (without the extension)
|
290 |
*/
|
291 |
-
function construct_filename( $post_id ) {
|
292 |
$filename = get_the_title( $post_id );
|
293 |
$filename = sanitize_title( $filename, $post_id );
|
294 |
$filename = urldecode( $filename );
|
@@ -320,7 +320,7 @@ class Video_Thumbnails {
|
|
320 |
elseif ( $image_type == 'image/png' ) $image_extension = '.png';
|
321 |
|
322 |
// Construct a file name with extension
|
323 |
-
$new_filename =
|
324 |
|
325 |
// Save the image bits using the new filename
|
326 |
$upload = wp_upload_bits( $new_filename, null, $image_contents );
|
5 |
Description: Automatically retrieve video thumbnails for your posts and display them in your theme. Supports YouTube, Vimeo, Facebook, Vine, Justin.tv, Twitch, Dailymotion, Metacafe, Blip, Google Drive, Funny or Die, CollegeHumor, MPORA, Wistia, Youku, and Rutube.
|
6 |
Author: Sutherland Boswell
|
7 |
Author URI: http://sutherlandboswell.com
|
8 |
+
Version: 2.4.2
|
9 |
License: GPL2
|
10 |
*/
|
11 |
/* Copyright 2014 Sutherland Boswell (email : sutherland.boswell@gmail.com)
|
28 |
|
29 |
define( 'VIDEO_THUMBNAILS_PATH', dirname(__FILE__) );
|
30 |
define( 'VIDEO_THUMBNAILS_FIELD', '_video_thumbnail' );
|
31 |
+
define( 'VIDEO_THUMBNAILS_VERSION', '2.4.2' );
|
32 |
|
33 |
// Providers
|
34 |
require_once( VIDEO_THUMBNAILS_PATH . '/php/providers/class-video-thumbnails-providers.php' );
|
288 |
* @param int $post_id The ID of the post to create the filename for
|
289 |
* @return string A filename (without the extension)
|
290 |
*/
|
291 |
+
static function construct_filename( $post_id ) {
|
292 |
$filename = get_the_title( $post_id );
|
293 |
$filename = sanitize_title( $filename, $post_id );
|
294 |
$filename = urldecode( $filename );
|
320 |
elseif ( $image_type == 'image/png' ) $image_extension = '.png';
|
321 |
|
322 |
// Construct a file name with extension
|
323 |
+
$new_filename = self::construct_filename( $post_id ) . $image_extension;
|
324 |
|
325 |
// Save the image bits using the new filename
|
326 |
$upload = wp_upload_bits( $new_filename, null, $image_contents );
|