Version Description
- Enhancement: Now allow the align parameter in the profile HTML
Download this release
Release Info
Developer | dartiss |
Plugin | YouTube Embed |
Version | 5.0.3 |
Comparing to | |
See all releases |
Code changes from version 5.0.2 to 5.0.3
- includes/options-profiles.php +1 -0
- readme.txt +20 -17
- youtube-embed.php +2 -2
includes/options-profiles.php
CHANGED
@@ -41,6 +41,7 @@ if ( ( !empty( $_POST[ 'Submit' ] ) ) && ( check_admin_referer( 'youtube-embed-p
|
|
41 |
),
|
42 |
'div' => array( 'class' => array(),
|
43 |
'id' => array(),
|
|
|
44 |
'style' => array()
|
45 |
),
|
46 |
'span' => array('class' => array(),
|
41 |
),
|
42 |
'div' => array( 'class' => array(),
|
43 |
'id' => array(),
|
44 |
+
'align' => array(),
|
45 |
'style' => array()
|
46 |
),
|
47 |
'span' => array('class' => array(),
|
readme.txt
CHANGED
@@ -1,14 +1,14 @@
|
|
1 |
=== YouTube Embed ===
|
2 |
Contributors: dartiss
|
3 |
-
Donate link:
|
4 |
Tags: embed, insert, video, youtube
|
5 |
Requires at least: 3.9
|
6 |
-
Tested up to: 4.
|
7 |
-
Stable tag: 5.0.
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
11 |
-
|
12 |
|
13 |
== Description ==
|
14 |
|
@@ -43,7 +43,7 @@ How easy is it to use? The fine people at [Webucator](https://www.webucator.com
|
|
43 |
|
44 |
https://www.youtube.com/watch?v=Wc7cvpQS-xQ
|
45 |
|
46 |
-
|
47 |
|
48 |
* [Your YouTube Plugin is fantastic-it just saved my life on this site. Thank you!](https://twitter.com/AaronWatters/status/237957701605404672?uid=16257815&iid=am-130280753913455685118891763&nid=4+248 "Twitter - Aaron Watters") - Sonic Clamp
|
49 |
* [New Technology Finds The Most Buzzed-About Parts Of Videos](http://www.socialtimes.com/2011/03/new-technology-finds-the-most-buzzed-about-parts-of-videos-interview/ "New Technology Finds The Most Buzzed-About Parts Of Videos") - SocialTimes
|
@@ -52,7 +52,7 @@ https://www.youtube.com/watch?v=Wc7cvpQS-xQ
|
|
52 |
|
53 |
== Getting Started ==
|
54 |
|
55 |
-
To add a video to a post or page simply use the shortcode `[youtube]video[/youtube]`, where `video` is the ID or URL of the YouTube video. Alternatively, you can add one (or more) widgets to your sidebar.
|
56 |
|
57 |
If you're not sure what the video ID is, please head to the FAQ section where it's explained in greater detail!
|
58 |
|
@@ -70,7 +70,7 @@ First, head to the [YouTube Developers Console](https://console.developers.googl
|
|
70 |
|
71 |
A basic shortcode will embed your video using your default profile settings. However, you may wish to override some of these options on a video-by-video basis - this is done via parameters added to the shortcode.
|
72 |
|
73 |
-
e.g. `[youtube width=300 height=200]Z_sCoHGIpU0[/youtube]`
|
74 |
|
75 |
Which options are available depends upon the users's set-up (for example, whether they have Flash installed or not). You can specify any of the parameters but they may be ignored. Please see the Profile screen in Administration for further details on any restrictions which may exist.
|
76 |
|
@@ -104,7 +104,7 @@ Which options are available depends upon the users's set-up (for example, whethe
|
|
104 |
|
105 |
== Alternative Shortcodes ==
|
106 |
|
107 |
-
Within Administration, selecting General Settings from the YouTube Embed menu will provide a list of generic options. One option is named `Alternative Shortcode` and allows you to specify another shortcode that will work exactly the same as the standard shortcode of `[youtube]`.
|
108 |
|
109 |
There are 2 reasons why you might want to do this...
|
110 |
|
@@ -125,7 +125,7 @@ And that's it! You can use unlimited widgets, so you can add different videos to
|
|
125 |
|
126 |
YouTube allows users to create their own playlists - collections of videos that can be played in sequence. These are embedded in the same way, by supplying the playlist ID.
|
127 |
|
128 |
-
e.g. `[youtube]PLVTLbc6i-h_iuhdwUfuPDLFLXG2QQnz-x[/youtube]`
|
129 |
|
130 |
An alternative to the YouTube build playlists is the build-in lists function - see the Lists section for further details.
|
131 |
|
@@ -161,7 +161,7 @@ As with profiles you can select the list from a drop down in the top right-hand
|
|
161 |
|
162 |
To use a list, simply specify the list name or number instead of a video ID, as well as a parameter to specify how you wish the list to be played back.
|
163 |
|
164 |
-
e.g. `[youtube list='order']List 1[/youtube]`
|
165 |
|
166 |
The list parameter allows to to either play each in turn, play them randomly, or have just one played (but picked randomly).
|
167 |
|
@@ -252,7 +252,7 @@ In some cases activating these plugins will cause their settings screen to also
|
|
252 |
|
253 |
**By listing these plugins, we provide no guarantees that they work correctly and we certainly don't provide any support for them.**
|
254 |
|
255 |
-
If you'd like your own plugin adding to this list then please [get in touch](
|
256 |
|
257 |
== Installation ==
|
258 |
|
@@ -281,7 +281,7 @@ The video ID is the list of letters and numbers after `v=`, in this case `L5Y4qz
|
|
281 |
|
282 |
If you go into the Profile screen in Administration there is a "Window Mode" option. This defines how Flash output interacts with any other around it. "Window" is the default and gives good performance but may cause overlapping. If overlapping is causing an issue try "Opaque".
|
283 |
|
284 |
-
= I'm getting an error saying that "an alternative plugin is using the [youtube] shortcode" =
|
285 |
|
286 |
As this suggests another plugin that you have installed is using the same shortcode as YouTube Embed. That means that use of the `youtube` shortcode won't work. You have 2 possible actions to take...
|
287 |
|
@@ -330,12 +330,15 @@ Before reporting it please bear in mind that this plugin uses the standard YouTu
|
|
330 |
6. The default visual editor options with the YouTube Embed button
|
331 |
7. The third party plugins menu
|
332 |
|
333 |
-
== Changelog ==
|
|
|
|
|
|
|
334 |
|
335 |
= 5.0.2 =
|
336 |
* Enhancement: I now include the shortcodes code whether you're in admin or not, as there is no performance improvement by doing otherwise
|
337 |
* Enhancement: After WordPress 4.6 you don't need to load the text domain. So I don't!
|
338 |
-
* Enhancement: Fixed XSS vulnerability by restricting which HTML tags can be used in the template field
|
339 |
|
340 |
= 5.0.1 =
|
341 |
* Maintenance: Now suppressing errors when fetching of API data fails
|
@@ -445,7 +448,7 @@ Before reporting it please bear in mind that this plugin uses the standard YouTu
|
|
445 |
* Maintenance: Left some debug code in by mistake. Doh. Sometimes I'd forget my own head if it wasn't screwed on.... Apologies to those affected.
|
446 |
|
447 |
= 4.0 =
|
448 |
-
* Maintenance: Removed a number of redundant/broken features. [Learn more](
|
449 |
* Maintenance: Updated download link to use KeepVid.
|
450 |
* Maintenance: Re-written admin screen to use WordPress standard method of displaying settings. Oh, and the widget settings too.
|
451 |
* Maintenance: ...speaking of which, revised the options available to widgets.
|
@@ -523,5 +526,5 @@ Before reporting it please bear in mind that this plugin uses the standard YouTu
|
|
523 |
|
524 |
== Upgrade Notice ==
|
525 |
|
526 |
-
= 5.0.
|
527 |
-
*
|
1 |
=== YouTube Embed ===
|
2 |
Contributors: dartiss
|
3 |
+
Donate link: https://artiss.blog/donate
|
4 |
Tags: embed, insert, video, youtube
|
5 |
Requires at least: 3.9
|
6 |
+
Tested up to: 4.7.3
|
7 |
+
Stable tag: 5.0.3
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
11 |
+
An incredibly fast, simple, yet powerful, method of embedding YouTube videos into your WordPress site.
|
12 |
|
13 |
== Description ==
|
14 |
|
43 |
|
44 |
https://www.youtube.com/watch?v=Wc7cvpQS-xQ
|
45 |
|
46 |
+
== Reviews & Mentions ==
|
47 |
|
48 |
* [Your YouTube Plugin is fantastic-it just saved my life on this site. Thank you!](https://twitter.com/AaronWatters/status/237957701605404672?uid=16257815&iid=am-130280753913455685118891763&nid=4+248 "Twitter - Aaron Watters") - Sonic Clamp
|
49 |
* [New Technology Finds The Most Buzzed-About Parts Of Videos](http://www.socialtimes.com/2011/03/new-technology-finds-the-most-buzzed-about-parts-of-videos-interview/ "New Technology Finds The Most Buzzed-About Parts Of Videos") - SocialTimes
|
52 |
|
53 |
== Getting Started ==
|
54 |
|
55 |
+
To add a video to a post or page simply use the shortcode `[[youtube]video[/youtube]]`, where `video` is the ID or URL of the YouTube video. Alternatively, you can add one (or more) widgets to your sidebar.
|
56 |
|
57 |
If you're not sure what the video ID is, please head to the FAQ section where it's explained in greater detail!
|
58 |
|
70 |
|
71 |
A basic shortcode will embed your video using your default profile settings. However, you may wish to override some of these options on a video-by-video basis - this is done via parameters added to the shortcode.
|
72 |
|
73 |
+
e.g. `[[youtube width=300 height=200]Z_sCoHGIpU0[/youtube]]`
|
74 |
|
75 |
Which options are available depends upon the users's set-up (for example, whether they have Flash installed or not). You can specify any of the parameters but they may be ignored. Please see the Profile screen in Administration for further details on any restrictions which may exist.
|
76 |
|
104 |
|
105 |
== Alternative Shortcodes ==
|
106 |
|
107 |
+
Within Administration, selecting General Settings from the YouTube Embed menu will provide a list of generic options. One option is named `Alternative Shortcode` and allows you to specify another shortcode that will work exactly the same as the standard shortcode of `[[youtube]]`.
|
108 |
|
109 |
There are 2 reasons why you might want to do this...
|
110 |
|
125 |
|
126 |
YouTube allows users to create their own playlists - collections of videos that can be played in sequence. These are embedded in the same way, by supplying the playlist ID.
|
127 |
|
128 |
+
e.g. `[[youtube]PLVTLbc6i-h_iuhdwUfuPDLFLXG2QQnz-x[/youtube]]`
|
129 |
|
130 |
An alternative to the YouTube build playlists is the build-in lists function - see the Lists section for further details.
|
131 |
|
161 |
|
162 |
To use a list, simply specify the list name or number instead of a video ID, as well as a parameter to specify how you wish the list to be played back.
|
163 |
|
164 |
+
e.g. `[[youtube list='order']List 1[/youtube]]`
|
165 |
|
166 |
The list parameter allows to to either play each in turn, play them randomly, or have just one played (but picked randomly).
|
167 |
|
252 |
|
253 |
**By listing these plugins, we provide no guarantees that they work correctly and we certainly don't provide any support for them.**
|
254 |
|
255 |
+
If you'd like your own plugin adding to this list then please [get in touch](https://artiss.blog/contact-me/ "Contact").
|
256 |
|
257 |
== Installation ==
|
258 |
|
281 |
|
282 |
If you go into the Profile screen in Administration there is a "Window Mode" option. This defines how Flash output interacts with any other around it. "Window" is the default and gives good performance but may cause overlapping. If overlapping is causing an issue try "Opaque".
|
283 |
|
284 |
+
= I'm getting an error saying that "an alternative plugin is using the [[youtube]] shortcode" =
|
285 |
|
286 |
As this suggests another plugin that you have installed is using the same shortcode as YouTube Embed. That means that use of the `youtube` shortcode won't work. You have 2 possible actions to take...
|
287 |
|
330 |
6. The default visual editor options with the YouTube Embed button
|
331 |
7. The third party plugins menu
|
332 |
|
333 |
+
== Changelog ==
|
334 |
+
|
335 |
+
= 5.0.3 =
|
336 |
+
* Enhancement: Now allow the align parameter in the profile HTML
|
337 |
|
338 |
= 5.0.2 =
|
339 |
* Enhancement: I now include the shortcodes code whether you're in admin or not, as there is no performance improvement by doing otherwise
|
340 |
* Enhancement: After WordPress 4.6 you don't need to load the text domain. So I don't!
|
341 |
+
* Enhancement: Fixed XSS vulnerability by restricting which HTML tags can be used in the template field. Thanks to Tristan Madani for reporting this
|
342 |
|
343 |
= 5.0.1 =
|
344 |
* Maintenance: Now suppressing errors when fetching of API data fails
|
448 |
* Maintenance: Left some debug code in by mistake. Doh. Sometimes I'd forget my own head if it wasn't screwed on.... Apologies to those affected.
|
449 |
|
450 |
= 4.0 =
|
451 |
+
* Maintenance: Removed a number of redundant/broken features. [Learn more](https://artiss.blog/youtube-embed-removed-features/ "Removed Features").
|
452 |
* Maintenance: Updated download link to use KeepVid.
|
453 |
* Maintenance: Re-written admin screen to use WordPress standard method of displaying settings. Oh, and the widget settings too.
|
454 |
* Maintenance: ...speaking of which, revised the options available to widgets.
|
526 |
|
527 |
== Upgrade Notice ==
|
528 |
|
529 |
+
= 5.0.3 =
|
530 |
+
* Minor improvement to allowed HTML in the template
|
youtube-embed.php
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
Plugin Name: YouTube Embed
|
4 |
Plugin URI: https://wordpress.org/plugins/youtube-embed/
|
5 |
Description: Embed YouTube Videos in WordPress
|
6 |
-
Version: 5.0.
|
7 |
Author: dartiss
|
8 |
Author URI: http://www.artiss.co.uk
|
9 |
Text Domain: youtube-embed
|
@@ -19,7 +19,7 @@ Domain Path: /languages
|
|
19 |
* @since 2.0
|
20 |
*/
|
21 |
|
22 |
-
define( 'youtube_embed_version', '5.0.
|
23 |
|
24 |
$functions_dir = plugin_dir_path( __FILE__ ) . 'includes/';
|
25 |
|
3 |
Plugin Name: YouTube Embed
|
4 |
Plugin URI: https://wordpress.org/plugins/youtube-embed/
|
5 |
Description: Embed YouTube Videos in WordPress
|
6 |
+
Version: 5.0.3
|
7 |
Author: dartiss
|
8 |
Author URI: http://www.artiss.co.uk
|
9 |
Text Domain: youtube-embed
|
19 |
* @since 2.0
|
20 |
*/
|
21 |
|
22 |
+
define( 'youtube_embed_version', '5.0.3' );
|
23 |
|
24 |
$functions_dir = plugin_dir_path( __FILE__ ) . 'includes/';
|
25 |
|