Video Thumbnails - Version 2.0.8

Version Description

  • Better fix for AYVP featured image bug
Download this release

Release Info

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

Code changes from version 2.0.7 to 2.0.8

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.6
7
- Stable tag: 2.0.7
8
 
9
  Video Thumbnails simplifies the process of automatically displaying video thumbnails in your WordPress template.
10
 
@@ -97,6 +97,9 @@ The Vimeo API has a rate limit, so in rare cases you may exceed this limit. Try
97
 
98
  == Changelog ==
99
 
 
 
 
100
  = 2.0.7 =
101
  * Fix for bug that prevented featured images from being set for posts imported by AYVP
102
 
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.6
7
+ Stable tag: 2.0.8
8
 
9
  Video Thumbnails simplifies the process of automatically displaying video thumbnails in your WordPress template.
10
 
97
 
98
  == Changelog ==
99
 
100
+ = 2.0.8 =
101
+ * Better fix for AYVP featured image bug
102
+
103
  = 2.0.7 =
104
  * Fix for bug that prevented featured images from being set for posts imported by AYVP
105
 
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.7
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.7' );
32
 
33
  // Providers
34
  require_once( VIDEO_THUMBNAILS_PATH . '/php/providers/class-video-thumbnails-providers.php' );
@@ -162,7 +162,7 @@ class Video_Thumbnails {
162
  // Set attachment as featured image if enabled
163
  if ( $this->settings->options['set_featured'] == 1 && $this->settings->options['save_media'] == 1 ) {
164
  // Make sure there isn't already a post thumbnail
165
- if ( intval( get_post_thumbnail_id( $post_id ) ) === 0 ) {
166
  set_post_thumbnail( $post_id, $attachment_id );
167
  }
168
  }
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.8
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.8' );
32
 
33
  // Providers
34
  require_once( VIDEO_THUMBNAILS_PATH . '/php/providers/class-video-thumbnails-providers.php' );
162
  // Set attachment as featured image if enabled
163
  if ( $this->settings->options['set_featured'] == 1 && $this->settings->options['save_media'] == 1 ) {
164
  // Make sure there isn't already a post thumbnail
165
+ if ( !ctype_digit( get_post_thumbnail_id( $post_id ) ) ) {
166
  set_post_thumbnail( $post_id, $attachment_id );
167
  }
168
  }