Video Thumbnails - Version 2.0.4

Version Description

  • Fixed bug with file names when the post title uses non-latin characters
Download this release

Release Info

Developer sutherlandboswell
Plugin Icon 128x128 Video Thumbnails
Version 2.0.4
Comparing to
See all releases

Code changes from version 2.0.3 to 2.0.4

Files changed (2) hide show
  1. readme.txt +4 -1
  2. video-thumbnails.php +3 -3
readme.txt CHANGED
@@ -4,7 +4,7 @@ Donate link: http://wie.ly/u/donate
4
  Tags: Video, Thumbnails, YouTube, Vimeo, Blip, Justin.tv, Dailymotion, Metacafe, Image, Featured Image, Post Thumbnail
5
  Requires at least: 3.1
6
  Tested up to: 3.5.1
7
- Stable tag: 2.0.3
8
 
9
  Video Thumbnails simplifies the process of automatically displaying video thumbnails in your WordPress template.
10
 
@@ -96,6 +96,9 @@ The Vimeo API has a rate limit, so in rare cases you may exceed this limit. Try
96
 
97
  == Changelog ==
98
 
 
 
 
99
  = 2.0.3 =
100
  * Fixed problem caused by YouTube removing http: or https: from their default embed code
101
 
4
  Tags: Video, Thumbnails, YouTube, Vimeo, Blip, Justin.tv, Dailymotion, Metacafe, Image, Featured Image, Post Thumbnail
5
  Requires at least: 3.1
6
  Tested up to: 3.5.1
7
+ Stable tag: 2.0.4
8
 
9
  Video Thumbnails simplifies the process of automatically displaying video thumbnails in your WordPress template.
10
 
96
 
97
  == Changelog ==
98
 
99
+ = 2.0.4 =
100
+ * Fixed bug with file names when the post title uses non-latin characters
101
+
102
  = 2.0.3 =
103
  * Fixed problem caused by YouTube removing http: or https: from their default embed code
104
 
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. Currently supports YouTube, Vimeo, Facebook, Blip.tv, Justin.tv, Dailymotion, Metacafe, Wistia, Youku, Funny or Die, and MPORA.
6
  Author: Sutherland Boswell
7
  Author URI: http://sutherlandboswell.com
8
- Version: 2.0.3
9
  License: GPL2
10
  */
11
  /* Copyright 2013 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.0.3' );
32
 
33
  // Providers
34
  require_once( VIDEO_THUMBNAILS_PATH . '/php/providers/class-video-thumbnails-providers.php' );
@@ -207,7 +207,7 @@ class Video_Thumbnails {
207
  elseif ( $image_extension == 'image/png' ) $image_extension = '.png';
208
 
209
  // Construct a file name using post slug and extension
210
- $new_filename = basename( get_permalink( $post_id ) ) . $image_extension;
211
 
212
  // Save the image bits using the new filename
213
  $upload = wp_upload_bits( $new_filename, null, $image_contents );
5
  Description: Automatically retrieve video thumbnails for your posts and display them in your theme. Currently supports YouTube, Vimeo, Facebook, Blip.tv, Justin.tv, Dailymotion, Metacafe, Wistia, Youku, Funny or Die, and MPORA.
6
  Author: Sutherland Boswell
7
  Author URI: http://sutherlandboswell.com
8
+ Version: 2.0.4
9
  License: GPL2
10
  */
11
  /* Copyright 2013 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.0.4' );
32
 
33
  // Providers
34
  require_once( VIDEO_THUMBNAILS_PATH . '/php/providers/class-video-thumbnails-providers.php' );
207
  elseif ( $image_extension == 'image/png' ) $image_extension = '.png';
208
 
209
  // Construct a file name using post slug and extension
210
+ $new_filename = urldecode( basename( get_permalink( $post_id ) ) ) . $image_extension;
211
 
212
  // Save the image bits using the new filename
213
  $upload = wp_upload_bits( $new_filename, null, $image_contents );