Version Description
- Better support for Vimeo Shortcode (thanks to Darren for the tip)
Download this release
Release Info
Developer | sutherlandboswell |
Plugin | Video Thumbnails |
Version | 0.5.3 |
Comparing to | |
See all releases |
Code changes from version 0.5.2 to 0.5.3
- readme.txt +6 -3
- video-thumbnails.php +5 -2
readme.txt
CHANGED
@@ -1,12 +1,12 @@
|
|
1 |
=== Video Thumbnails ===
|
2 |
Contributors: sutherlandboswell
|
3 |
-
Donate link: http://sutherlandboswell.com
|
4 |
Tags: Video, YouTube, Vimeo, Blip.tv, Thumbnails
|
5 |
Requires at least: 3.0
|
6 |
Tested up to: 3.0.2
|
7 |
-
Stable tag: 0.5.
|
8 |
|
9 |
-
Video Thumbnails is a simple plugin that makes it
|
10 |
|
11 |
== Description ==
|
12 |
|
@@ -51,6 +51,9 @@ In version 0.2 `get_video_thumbnail()` was added which returns null when no thum
|
|
51 |
|
52 |
== Changelog ==
|
53 |
|
|
|
|
|
|
|
54 |
= 0.5.2 =
|
55 |
* Added support for [Simple Video Embedder](http://wordpress.org/extend/plugins/simple-video-embedder/)
|
56 |
|
1 |
=== Video Thumbnails ===
|
2 |
Contributors: sutherlandboswell
|
3 |
+
Donate link: http://sutherlandboswell.com/2010/11/wordpress-video-thumbnails/
|
4 |
Tags: Video, YouTube, Vimeo, Blip.tv, Thumbnails
|
5 |
Requires at least: 3.0
|
6 |
Tested up to: 3.0.2
|
7 |
+
Stable tag: 0.5.3
|
8 |
|
9 |
+
Video Thumbnails is a simple plugin that makes it easy to automatically display video thumbnails in your template.
|
10 |
|
11 |
== Description ==
|
12 |
|
51 |
|
52 |
== Changelog ==
|
53 |
|
54 |
+
= 0.5.3 =
|
55 |
+
* Better support for Vimeo Shortcode (thanks to Darren for the tip)
|
56 |
+
|
57 |
= 0.5.2 =
|
58 |
* Added support for [Simple Video Embedder](http://wordpress.org/extend/plugins/simple-video-embedder/)
|
59 |
|
video-thumbnails.php
CHANGED
@@ -2,10 +2,10 @@
|
|
2 |
/*
|
3 |
Plugin Name: Video Thumbnails
|
4 |
Plugin URI: http://sutherlandboswell.com/2010/11/wordpress-video-thumbnails/
|
5 |
-
Description:
|
6 |
Author: Sutherland Boswell
|
7 |
Author URI: http://sutherlandboswell.com
|
8 |
-
Version: 0.5.
|
9 |
License: GPL2
|
10 |
*/
|
11 |
/* Copyright 2010 Sutherland Boswell (email : sutherland.boswell@gmail.com)
|
@@ -122,6 +122,9 @@ function get_video_thumbnail() {
|
|
122 |
if(!isset($matches[1])) {
|
123 |
preg_match('#\[vimeo clip_id="([A-Za-z0-9\-_]+)"[^>]*]#s', $markup, $matches);
|
124 |
}
|
|
|
|
|
|
|
125 |
|
126 |
// Now if we've found a Vimeo ID, let's set the thumbnail URL
|
127 |
if(isset($matches[1])) {
|
2 |
/*
|
3 |
Plugin Name: Video Thumbnails
|
4 |
Plugin URI: http://sutherlandboswell.com/2010/11/wordpress-video-thumbnails/
|
5 |
+
Description: Make adding video thumbnails to your posts easier and automatic, just add <code><?php video_thumbnail(); ?></code> to your loop to get the thumbnail's URL. <code><?php get_video_thumbnail(); ?></code> is also available for more advanced users. Currently works with YouTube, Vimeo, and Blip.tv, along with several embedding plugins.
|
6 |
Author: Sutherland Boswell
|
7 |
Author URI: http://sutherlandboswell.com
|
8 |
+
Version: 0.5.3
|
9 |
License: GPL2
|
10 |
*/
|
11 |
/* Copyright 2010 Sutherland Boswell (email : sutherland.boswell@gmail.com)
|
122 |
if(!isset($matches[1])) {
|
123 |
preg_match('#\[vimeo clip_id="([A-Za-z0-9\-_]+)"[^>]*]#s', $markup, $matches);
|
124 |
}
|
125 |
+
if(!isset($matches[1])) {
|
126 |
+
preg_match('#\[vimeo video_id="([A-Za-z0-9\-_]+)"[^>]*]#s', $markup, $matches);
|
127 |
+
}
|
128 |
|
129 |
// Now if we've found a Vimeo ID, let's set the thumbnail URL
|
130 |
if(isset($matches[1])) {
|