Video Thumbnails - Version 1.8.1

Version Description

  • Plugin now scans posts added using XML-RPC which makes posting videos from iOS or other apps work smoothly
Download this release

Release Info

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

Code changes from version 1.8 to 1.8.1

Files changed (2) hide show
  1. readme.txt +4 -1
  2. video-thumbnails.php +6 -1
readme.txt CHANGED
@@ -4,7 +4,7 @@ Donate link: http://wie.ly/u/donate
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.3.1
7
- Stable tag: 1.8
8
 
9
  Video Thumbnails simplifies the process of automatically displaying video thumbnails in your WordPress template.
10
 
@@ -88,6 +88,9 @@ The Vimeo API has a rate limit, so in rare cases you may exceed this limit. Try
88
 
89
  == Changelog ==
90
 
 
 
 
91
  = 1.8 =
92
  * Added support for custom fields via a new setting
93
  * Added support for YouTube's privacy-enhanced domain (youtube-nocookie.com)
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.3.1
7
+ Stable tag: 1.8.1
8
 
9
  Video Thumbnails simplifies the process of automatically displaying video thumbnails in your WordPress template.
10
 
88
 
89
  == Changelog ==
90
 
91
+ = 1.8.1 =
92
+ * Plugin now scans posts added using XML-RPC which makes posting videos from iOS or other apps work smoothly
93
+
94
  = 1.8 =
95
  * Added support for custom fields via a new setting
96
  * Added support for YouTube's privacy-enhanced domain (youtube-nocookie.com)
video-thumbnails.php CHANGED
@@ -5,7 +5,7 @@ Plugin URI: http://sutherlandboswell.com/projects/wordpress-video-thumbnails/
5
  Description: Automatically retrieve video thumbnails for your posts and display them in your theme. Currently supports YouTube, Vimeo, Blip.tv, Justin.tv, Dailymotion and Metacafe.
6
  Author: Sutherland Boswell
7
  Author URI: http://sutherlandboswell.com
8
- Version: 1.8
9
  License: GPL2
10
  */
11
  /* Copyright 2010 Sutherland Boswell (email : sutherland.boswell@gmail.com)
@@ -460,6 +460,11 @@ add_action( 'draft_to_publish', 'save_video_thumbnail', 10, 1 );
460
  add_action( 'pending_to_publish', 'save_video_thumbnail', 10, 1 );
461
  add_action( 'future_to_publish', 'save_video_thumbnail', 10, 1 );
462
 
 
 
 
 
 
463
  function save_video_thumbnail( $post ) {
464
  $post_type = get_post_type( $post->ID );
465
  $video_thumbnails_post_types = get_option( 'video_thumbnails_post_types' );
5
  Description: Automatically retrieve video thumbnails for your posts and display them in your theme. Currently supports YouTube, Vimeo, Blip.tv, Justin.tv, Dailymotion and Metacafe.
6
  Author: Sutherland Boswell
7
  Author URI: http://sutherlandboswell.com
8
+ Version: 1.8.1
9
  License: GPL2
10
  */
11
  /* Copyright 2010 Sutherland Boswell (email : sutherland.boswell@gmail.com)
460
  add_action( 'pending_to_publish', 'save_video_thumbnail', 10, 1 );
461
  add_action( 'future_to_publish', 'save_video_thumbnail', 10, 1 );
462
 
463
+ // Finds thumbnail when posting from XML-RPC
464
+ // (this action passes the post ID as an argument so 'get_video_thumbnail' is used instead)
465
+
466
+ add_action( 'xmlrpc_publish_post', 'get_video_thumbnail', 10, 1 );
467
+
468
  function save_video_thumbnail( $post ) {
469
  $post_type = get_post_type( $post->ID );
470
  $video_thumbnails_post_types = get_option( 'video_thumbnails_post_types' );