Video Thumbnails - Version 2.5.1

Version Description

  • Fixed improper error handling
Download this release

Release Info

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

Code changes from version 2.5 to 2.5.1

php/providers/class-googledrive-thumbnails.php CHANGED
@@ -67,7 +67,7 @@ class GoogleDrive_Thumbnails extends Video_Thumbnails_Providers {
67
  $result = str_replace( '=s220', '=s480', $result );
68
  }
69
  } else {
70
- $result = new WP_Error( 'googledrive_api_key', __( 'You must enter an API key to retrieve thumbnails from Google Drive' ) );
71
  }
72
  return $result;
73
  }
67
  $result = str_replace( '=s220', '=s480', $result );
68
  }
69
  } else {
70
+ $result = new WP_Error( 'googledrive_api_key', __( 'You must enter an API key in the <a href="' . admin_url( 'options-general.php?page=video_thumbnails&tab=provider_settings' ) . '">provider settings</a> to retrieve thumbnails from Google Drive.' ) );
71
  }
72
  return $result;
73
  }
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.2
6
  Tested up to: 3.8
7
- Stable tag: 2.5
8
 
9
  Video Thumbnails simplifies the process of automatically displaying video thumbnails in your WordPress template.
10
 
@@ -115,6 +115,9 @@ The Vimeo API has a rate limit, so in rare cases you may exceed this limit. Try
115
 
116
  == Changelog ==
117
 
 
 
 
118
  = 2.5 =
119
  * Added support for [Video Thumbnails Pro](https://refactored.co/plugins/video-thumbnails), our new solution for power users and professional bloggers
120
  * Various bugfixes and improvements
4
  Tags: Video, Thumbnails, YouTube, Vimeo, Vine, Twitch, Dailymotion, Youku, Rutube, Featured Image
5
  Requires at least: 3.2
6
  Tested up to: 3.8
7
+ Stable tag: 2.5.1
8
 
9
  Video Thumbnails simplifies the process of automatically displaying video thumbnails in your WordPress template.
10
 
115
 
116
  == Changelog ==
117
 
118
+ = 2.5.1 =
119
+ * Fixed improper error handling
120
+
121
  = 2.5 =
122
  * Added support for [Video Thumbnails Pro](https://refactored.co/plugins/video-thumbnails), our new solution for power users and professional bloggers
123
  * Various bugfixes and improvements
video-thumbnails.php CHANGED
@@ -5,7 +5,7 @@ Plugin URI: https://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.5
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.5' );
32
 
33
  // Providers
34
  require_once( VIDEO_THUMBNAILS_PATH . '/php/providers/class-video-thumbnails-providers.php' );
@@ -240,7 +240,7 @@ class Video_Thumbnails {
240
  }
241
 
242
  // Return the new thumbnail variable and update meta if one is found
243
- if ( $new_thumbnail != null ) {
244
 
245
  // Save as Attachment if enabled
246
  if ( $this->settings->options['save_media'] == 1 ) {
@@ -260,6 +260,7 @@ class Video_Thumbnails {
260
  }
261
  }
262
  }
 
263
  return $new_thumbnail;
264
 
265
  }
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.5.1
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.5.1' );
32
 
33
  // Providers
34
  require_once( VIDEO_THUMBNAILS_PATH . '/php/providers/class-video-thumbnails-providers.php' );
240
  }
241
 
242
  // Return the new thumbnail variable and update meta if one is found
243
+ if ( $new_thumbnail != null && !is_wp_error( $new_thumbnail ) ) {
244
 
245
  // Save as Attachment if enabled
246
  if ( $this->settings->options['save_media'] == 1 ) {
260
  }
261
  }
262
  }
263
+
264
  return $new_thumbnail;
265
 
266
  }