Video Thumbnails - Version 1.7.5

Version Description

  • Bugfix for array error on line 408
Download this release

Release Info

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

Code changes from version 1.7.4 to 1.7.5

Files changed (2) hide show
  1. readme.txt +9 -2
  2. video-thumbnails.php +2 -2
readme.txt CHANGED
@@ -1,10 +1,10 @@
1
  === Video Thumbnails ===
2
  Contributors: sutherlandboswell
3
- Donate link: http://amzn.com/w/1L25YG6FO8AZ1
4
  Tags: Video, Thumbnails, YouTube, Vimeo, Blip.tv, Justin.tv, Dailymotion, Metacafe, Image, Featured Image, Post Thumbnail
5
  Requires at least: 3.0
6
  Tested up to: 3.1.2
7
- Stable tag: 1.7.4
8
 
9
  Video Thumbnails simplifies the process of automatically displaying video thumbnails in your WordPress template.
10
 
@@ -44,6 +44,10 @@ Some functions are available to advanced users who want to customize their theme
44
 
45
  The most likely problem is that your theme doesn't support post thumbnails. If thumbnails are supported, you should see a box titled "Featured Image" on the edit post page. If thumbnails aren't supported, your theme will have to be modified to support Featured Images or to support one of our custom functions.
46
 
 
 
 
 
47
  = Can I use the functions outside of a loop? =
48
 
49
  Yes, but be sure to include the post ID as a parameter. For example: `<?php $thumbnail = get_video_thumbnail(25); ?>`
@@ -84,6 +88,9 @@ The Vimeo API has a rate limit, so in rare cases you may exceed this limit. Try
84
 
85
  == Changelog ==
86
 
 
 
 
87
  = 1.7.4 =
88
  * Fixed Dailymotion bug (thanks [Gee](http://wordpress.org/support/profile/geekxx))
89
  * Added detection for Dailymotion URLs (thanks [Gee](http://wordpress.org/support/profile/geekxx))
1
  === Video Thumbnails ===
2
  Contributors: sutherlandboswell
3
+ Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=sutherland%2eboswell%40gmail%2ecom&lc=US&item_name=Sutherland%20Boswell&currency_code=USD&bn=PP%2dDonationsBF%3abtn_donate_LG%2egif%3aNonHosted
4
  Tags: Video, Thumbnails, YouTube, Vimeo, Blip.tv, Justin.tv, Dailymotion, Metacafe, Image, Featured Image, Post Thumbnail
5
  Requires at least: 3.0
6
  Tested up to: 3.1.2
7
+ Stable tag: 1.7.5
8
 
9
  Video Thumbnails simplifies the process of automatically displaying video thumbnails in your WordPress template.
10
 
44
 
45
  The most likely problem is that your theme doesn't support post thumbnails. If thumbnails are supported, you should see a box titled "Featured Image" on the edit post page. If thumbnails aren't supported, your theme will have to be modified to support Featured Images or to support one of our custom functions.
46
 
47
+ = I'm using a custom field to store the video and it isn't working, is there a solution? =
48
+
49
+ Yes, [this thread](http://wordpress.org/support/topic/plugin-video-thumbnails-cant-find-youtube-thumbnails) has a solution for searching a custom field instead of the post's main content.
50
+
51
  = Can I use the functions outside of a loop? =
52
 
53
  Yes, but be sure to include the post ID as a parameter. For example: `<?php $thumbnail = get_video_thumbnail(25); ?>`
88
 
89
  == Changelog ==
90
 
91
+ = 1.7.5 =
92
+ * Bugfix for array error on line 408
93
+
94
  = 1.7.4 =
95
  * Fixed Dailymotion bug (thanks [Gee](http://wordpress.org/support/profile/geekxx))
96
  * Added detection for Dailymotion URLs (thanks [Gee](http://wordpress.org/support/profile/geekxx))
video-thumbnails.php CHANGED
@@ -5,7 +5,7 @@ Plugin URI: http://sutherlandboswell.com/2010/11/wordpress-video-thumbnails/
5
  Description: Automatically retrieve video thumbnails for your posts and display them in your theme. Currently supports YouTube, Vimeo, Blip.tv, and Justin.tv.
6
  Author: Sutherland Boswell
7
  Author URI: http://sutherlandboswell.com
8
- Version: 1.7.4
9
  License: GPL2
10
  */
11
  /* Copyright 2010 Sutherland Boswell (email : sutherland.boswell@gmail.com)
@@ -405,7 +405,7 @@ function save_video_thumbnail( $post ){
405
  return null;
406
  } else {
407
  // Check that Video Thumbnails are enabled for current post type
408
- if (in_array($post_type, $video_thumbnails_post_types) OR $post_type == $video_thumbnails_post_types) {
409
  get_video_thumbnail($post->ID);
410
  } else {
411
  return null;
5
  Description: Automatically retrieve video thumbnails for your posts and display them in your theme. Currently supports YouTube, Vimeo, Blip.tv, and Justin.tv.
6
  Author: Sutherland Boswell
7
  Author URI: http://sutherlandboswell.com
8
+ Version: 1.7.5
9
  License: GPL2
10
  */
11
  /* Copyright 2010 Sutherland Boswell (email : sutherland.boswell@gmail.com)
405
  return null;
406
  } else {
407
  // Check that Video Thumbnails are enabled for current post type
408
+ if (in_array($post_type, (array) $video_thumbnails_post_types) || $post_type == $video_thumbnails_post_types) {
409
  get_video_thumbnail($post->ID);
410
  } else {
411
  return null;