Version Description
- Fixed a bug that could create duplicate images on auto-save
Download this release
Release Info
Developer | sutherlandboswell |
Plugin | Video Thumbnails |
Version | 1.0.7 |
Comparing to | |
See all releases |
Code changes from version 1.0.6 to 1.0.7
- readme.txt +4 -1
- video-thumbnails.php +7 -3
readme.txt
CHANGED
@@ -4,7 +4,7 @@ Donate link: http://amzn.com/w/1L25YG6FO8AZ1
|
|
4 |
Tags: Video, YouTube, Vimeo, Blip.tv, Justin.tv, Thumbnails
|
5 |
Requires at least: 3.0
|
6 |
Tested up to: 3.0.4
|
7 |
-
Stable tag: 1.0.
|
8 |
|
9 |
Video Thumbnails is a simple plugin that makes it easy to automatically display video thumbnails in your template.
|
10 |
|
@@ -77,6 +77,9 @@ The Vimeo API has a rate limit, so in rare cases you may exceed this limit. Try
|
|
77 |
|
78 |
== Changelog ==
|
79 |
|
|
|
|
|
|
|
80 |
= 1.0.6 =
|
81 |
* Improved Blip.tv support
|
82 |
|
4 |
Tags: Video, YouTube, Vimeo, Blip.tv, Justin.tv, Thumbnails
|
5 |
Requires at least: 3.0
|
6 |
Tested up to: 3.0.4
|
7 |
+
Stable tag: 1.0.7
|
8 |
|
9 |
Video Thumbnails is a simple plugin that makes it easy to automatically display video thumbnails in your template.
|
10 |
|
77 |
|
78 |
== Changelog ==
|
79 |
|
80 |
+
= 1.0.7 =
|
81 |
+
* Fixed a bug that could create duplicate images on auto-save
|
82 |
+
|
83 |
= 1.0.6 =
|
84 |
* Improved Blip.tv support
|
85 |
|
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.0.
|
9 |
License: GPL2
|
10 |
*/
|
11 |
/* Copyright 2010 Sutherland Boswell (email : sutherland.boswell@gmail.com)
|
@@ -271,12 +271,16 @@ function save_details(){
|
|
271 |
}
|
272 |
}
|
273 |
|
274 |
-
// Find video thumbnail when saving a post
|
275 |
|
276 |
add_action('save_post', 'save_video_thumbnail');
|
277 |
|
278 |
function save_video_thumbnail($post_ID){
|
279 |
-
|
|
|
|
|
|
|
|
|
280 |
}
|
281 |
|
282 |
// Set Default Options
|
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.0.7
|
9 |
License: GPL2
|
10 |
*/
|
11 |
/* Copyright 2010 Sutherland Boswell (email : sutherland.boswell@gmail.com)
|
271 |
}
|
272 |
}
|
273 |
|
274 |
+
// Find video thumbnail when saving a post, but not on autosave
|
275 |
|
276 |
add_action('save_post', 'save_video_thumbnail');
|
277 |
|
278 |
function save_video_thumbnail($post_ID){
|
279 |
+
if ( defined('DOING_AUTOSAVE') && DOING_AUTOSAVE ) {
|
280 |
+
return $post_ID;
|
281 |
+
} else {
|
282 |
+
get_video_thumbnail($post_ID);
|
283 |
+
}
|
284 |
}
|
285 |
|
286 |
// Set Default Options
|