Version Description
- Fixed Vimeo protocol-relative embeds
- Fixed bug with PNG image types
Download this release
Release Info
Developer | sutherlandboswell |
Plugin | Video Thumbnails |
Version | 2.0.9 |
Comparing to | |
See all releases |
Code changes from version 2.0.8 to 2.0.9
- php/providers/class-vimeo-thumbnails.php +1 -1
- readme.txt +5 -1
- video-thumbnails.php +3 -3
php/providers/class-vimeo-thumbnails.php
CHANGED
@@ -62,7 +62,7 @@ class Vimeo_Thumbnails extends Video_Thumbnails_Providers {
|
|
62 |
// Regex strings
|
63 |
public $regexes = array(
|
64 |
'#<object[^>]+>.+?http://vimeo\.com/moogaloop.swf\?clip_id=([A-Za-z0-9\-_]+)&.+?</object>#s', // Standard Vimeo embed code
|
65 |
-
'#
|
66 |
'#\[vimeo id=([A-Za-z0-9\-_]+)]#', // JR_embed shortcode
|
67 |
'#\[vimeo clip_id="([A-Za-z0-9\-_]+)"[^>]*]#', // Another shortcode
|
68 |
'#\[vimeo video_id="([A-Za-z0-9\-_]+)"[^>]*]#', // Yet another shortcode
|
62 |
// Regex strings
|
63 |
public $regexes = array(
|
64 |
'#<object[^>]+>.+?http://vimeo\.com/moogaloop.swf\?clip_id=([A-Za-z0-9\-_]+)&.+?</object>#s', // Standard Vimeo embed code
|
65 |
+
'#(?:https?:)?//player\.vimeo\.com/video/([0-9]+)#', // Vimeo iframe player
|
66 |
'#\[vimeo id=([A-Za-z0-9\-_]+)]#', // JR_embed shortcode
|
67 |
'#\[vimeo clip_id="([A-Za-z0-9\-_]+)"[^>]*]#', // Another shortcode
|
68 |
'#\[vimeo video_id="([A-Za-z0-9\-_]+)"[^>]*]#', // Yet another shortcode
|
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.
|
8 |
|
9 |
Video Thumbnails simplifies the process of automatically displaying video thumbnails in your WordPress template.
|
10 |
|
@@ -97,6 +97,10 @@ The Vimeo API has a rate limit, so in rare cases you may exceed this limit. Try
|
|
97 |
|
98 |
== Changelog ==
|
99 |
|
|
|
|
|
|
|
|
|
100 |
= 2.0.8 =
|
101 |
* Better fix for AYVP featured image bug
|
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.9
|
8 |
|
9 |
Video Thumbnails simplifies the process of automatically displaying video thumbnails in your WordPress template.
|
10 |
|
97 |
|
98 |
== Changelog ==
|
99 |
|
100 |
+
= 2.0.9 =
|
101 |
+
* Fixed Vimeo protocol-relative embeds
|
102 |
+
* Fixed bug with PNG image types
|
103 |
+
|
104 |
= 2.0.8 =
|
105 |
* Better fix for AYVP featured image bug
|
106 |
|
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.
|
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.
|
32 |
|
33 |
// Providers
|
34 |
require_once( VIDEO_THUMBNAILS_PATH . '/php/providers/class-video-thumbnails-providers.php' );
|
@@ -207,7 +207,7 @@ class Video_Thumbnails {
|
|
207 |
|
208 |
// Translate MIME type into an extension
|
209 |
if ( $image_type == 'image/jpeg' ) $image_extension = '.jpg';
|
210 |
-
elseif ( $
|
211 |
|
212 |
// Construct a file name using post slug and extension
|
213 |
$new_filename = urldecode( basename( get_permalink( $post_id ) ) ) . $image_extension;
|
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.9
|
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.9' );
|
32 |
|
33 |
// Providers
|
34 |
require_once( VIDEO_THUMBNAILS_PATH . '/php/providers/class-video-thumbnails-providers.php' );
|
207 |
|
208 |
// Translate MIME type into an extension
|
209 |
if ( $image_type == 'image/jpeg' ) $image_extension = '.jpg';
|
210 |
+
elseif ( $image_type == 'image/png' ) $image_extension = '.png';
|
211 |
|
212 |
// Construct a file name using post slug and extension
|
213 |
$new_filename = urldecode( basename( get_permalink( $post_id ) ) ) . $image_extension;
|