Version Description
- Bug: Fixed bug that prevented some fields in options screens to not save
Download this release
Release Info
| Developer | dartiss |
| Plugin | |
| Version | 2.5.4 |
| Comparing to | |
| See all releases | |
Code changes from version 2.5.3 to 2.5.4
- includes/aye-options-general.php +14 -14
- includes/aye-options-profiles.php +9 -9
- readme.txt +12 -4
- youtube-embed.php +2 -2
includes/aye-options-general.php
CHANGED
|
@@ -20,34 +20,34 @@ if ( ( !empty( $_POST ) ) && ( check_admin_referer( 'youtube-embed-general', 'yo
|
|
| 20 |
|
| 21 |
$options[ 'editor_button' ] = $_POST[ 'youtube_embed_editor_button' ];
|
| 22 |
$options[ 'admin_bar' ] = $_POST[ 'youtube_embed_admin_bar' ];
|
| 23 |
-
|
| 24 |
|
| 25 |
// If the number of profiles is less than zero, put it to 0
|
| 26 |
|
| 27 |
if ( $options[ 'profile_no' ] < 0 ) { $options[ 'profile_no' ] = 0; }
|
| 28 |
|
| 29 |
-
|
| 30 |
|
| 31 |
// If the number of lists is less than 1, put it to 1
|
| 32 |
|
| 33 |
if ( $options[ 'list_no' ] < 1 ) { $options[ 'list_no' ] = 1; }
|
| 34 |
|
| 35 |
-
|
| 36 |
-
|
| 37 |
-
|
| 38 |
-
|
| 39 |
-
|
| 40 |
-
|
| 41 |
$options[ 'bracket' ] = $_POST[ 'youtube_embed_bracket' ];
|
| 42 |
$options[ 'alt' ] = $_POST[ 'youtube_embed_alt' ];
|
| 43 |
-
|
| 44 |
$options[ 'comments' ] = $_POST[ 'youtube_embed_comments' ];
|
| 45 |
-
|
| 46 |
$options[ 'metadata' ] = $_POST[ 'youtube_embed_metadata' ];
|
| 47 |
-
|
| 48 |
-
|
| 49 |
-
|
| 50 |
-
|
| 51 |
$options[ 'privacy' ] = $_POST[ 'youtube_embed_privacy' ];
|
| 52 |
$options[ 'frameborder' ] = $_POST[ 'youtube_embed_frameborder' ];
|
| 53 |
|
| 20 |
|
| 21 |
$options[ 'editor_button' ] = $_POST[ 'youtube_embed_editor_button' ];
|
| 22 |
$options[ 'admin_bar' ] = $_POST[ 'youtube_embed_admin_bar' ];
|
| 23 |
+
$options[ 'profile_no' ] = $_POST[ 'youtube_embed_profile_no' ];
|
| 24 |
|
| 25 |
// If the number of profiles is less than zero, put it to 0
|
| 26 |
|
| 27 |
if ( $options[ 'profile_no' ] < 0 ) { $options[ 'profile_no' ] = 0; }
|
| 28 |
|
| 29 |
+
$options[ 'list_no' ] = $_POST[ 'youtube_embed_list_no' ];
|
| 30 |
|
| 31 |
// If the number of lists is less than 1, put it to 1
|
| 32 |
|
| 33 |
if ( $options[ 'list_no' ] < 1 ) { $options[ 'list_no' ] = 1; }
|
| 34 |
|
| 35 |
+
$options[ 'embed_cache' ] = $_POST[ 'youtube_embed_embed_cache' ];
|
| 36 |
+
$options[ 'info_cache' ] = $_POST[ 'youtube_embed_info_cache' ];
|
| 37 |
+
$options[ 'transcript_cache' ] = $_POST[ 'youtube_embed_transcript_cache' ];
|
| 38 |
+
$options[ 'fetch_title' ] = $_POST[ 'youtube_embed_fetch_title' ];
|
| 39 |
+
$options[ 'alt_profile' ] = $_POST[ 'youtube_embed_alt_profile' ];
|
| 40 |
+
$options[ 'alt_profile2' ] = $_POST[ 'youtube_embed_alt_profile2' ];
|
| 41 |
$options[ 'bracket' ] = $_POST[ 'youtube_embed_bracket' ];
|
| 42 |
$options[ 'alt' ] = $_POST[ 'youtube_embed_alt' ];
|
| 43 |
+
$options[ 'other_profile' ] = $_POST[ 'youtube_embed_other_profile' ];
|
| 44 |
$options[ 'comments' ] = $_POST[ 'youtube_embed_comments' ];
|
| 45 |
+
$options[ 'comments_profile' ] = $_POST[ 'youtube_embed_comments_profile' ];
|
| 46 |
$options[ 'metadata' ] = $_POST[ 'youtube_embed_metadata' ];
|
| 47 |
+
$options[ 'feed' ] = $_POST[ 'youtube_embed_feed' ];
|
| 48 |
+
$options[ 'api' ] = $_POST[ 'youtube_embed_api' ];
|
| 49 |
+
$options[ 'error_message' ] = htmlspecialchars( $_POST[ 'youtube_embed_error_message' ] );
|
| 50 |
+
$options[ 'thumbnail' ] = $_POST[ 'youtube_embed_thumbnail' ];
|
| 51 |
$options[ 'privacy' ] = $_POST[ 'youtube_embed_privacy' ];
|
| 52 |
$options[ 'frameborder' ] = $_POST[ 'youtube_embed_frameborder' ];
|
| 53 |
|
includes/aye-options-profiles.php
CHANGED
|
@@ -36,9 +36,9 @@ if ( $profile_no == '' ) { $profile_no = 0; }
|
|
| 36 |
// If options have been updated on screen, update the database
|
| 37 |
if ( ( !empty( $_POST[ 'Submit' ] ) ) && ( check_admin_referer( 'youtube-embed-profile' , 'youtube_embed_profile_nonce' ) ) ) {
|
| 38 |
|
| 39 |
-
|
| 40 |
-
|
| 41 |
-
|
| 42 |
$options[ 'width' ] = $_POST[ 'youtube_embed_width' ];
|
| 43 |
$options[ 'height' ] = $_POST[ 'youtube_embed_height' ];
|
| 44 |
|
|
@@ -57,20 +57,20 @@ if ( ( !empty( $_POST[ 'Submit' ] ) ) && ( check_admin_referer( 'youtube-embed-p
|
|
| 57 |
$options[ 'react'] = $_POST[ 'youtube_embed_react' ];
|
| 58 |
$options[ 'sweetspot'] = $_POST[ 'youtube_embed_sweetspot' ];
|
| 59 |
$options[ 'disablekb'] = $_POST[ 'youtube_embed_disablekb' ];
|
| 60 |
-
|
| 61 |
$options[ 'controls'] = $_POST[ 'youtube_embed_controls' ];
|
| 62 |
-
|
| 63 |
-
|
| 64 |
$options[ 'audio'] = $_POST[ 'youtube_embed_audio' ];
|
| 65 |
$options[ 'hd'] = $_POST[ 'youtube_embed_hd' ];
|
| 66 |
-
|
| 67 |
-
|
| 68 |
$options[ 'https' ] = $_POST[ 'youtube_embed_https' ];
|
| 69 |
$options[ 'modest' ] = $_POST[ 'youtube_embed_modest' ];
|
| 70 |
$options[ 'dynamic' ] = $_POST[ 'youtube_embed_dynamic' ];
|
| 71 |
$options[ 'fixed' ] = $_POST[ 'youtube_embed_fixed' ];
|
| 72 |
|
| 73 |
-
|
| 74 |
|
| 75 |
if ( $default_size !== '' ) {
|
| 76 |
$options[ 'width' ] = ltrim( substr( $default_size, 0, 4 ), '0' );
|
| 36 |
// If options have been updated on screen, update the database
|
| 37 |
if ( ( !empty( $_POST[ 'Submit' ] ) ) && ( check_admin_referer( 'youtube-embed-profile' , 'youtube_embed_profile_nonce' ) ) ) {
|
| 38 |
|
| 39 |
+
$options[ 'name' ] = $_POST[ 'youtube_embed_name' ];
|
| 40 |
+
$options[ 'type' ] = $_POST[ 'youtube_embed_type' ];
|
| 41 |
+
$options[ 'playlist' ] = $_POST[ 'youtube_embed_playlist' ];
|
| 42 |
$options[ 'width' ] = $_POST[ 'youtube_embed_width' ];
|
| 43 |
$options[ 'height' ] = $_POST[ 'youtube_embed_height' ];
|
| 44 |
|
| 57 |
$options[ 'react'] = $_POST[ 'youtube_embed_react' ];
|
| 58 |
$options[ 'sweetspot'] = $_POST[ 'youtube_embed_sweetspot' ];
|
| 59 |
$options[ 'disablekb'] = $_POST[ 'youtube_embed_disablekb' ];
|
| 60 |
+
$options[ 'autohide'] = $_POST[ 'youtube_embed_autohide' ];
|
| 61 |
$options[ 'controls'] = $_POST[ 'youtube_embed_controls' ];
|
| 62 |
+
$options[ 'fallback'] = $_POST[ 'youtube_embed_fallback' ];
|
| 63 |
+
$options[ 'wmode'] = $_POST[ 'youtube_embed_wmode' ];
|
| 64 |
$options[ 'audio'] = $_POST[ 'youtube_embed_audio' ];
|
| 65 |
$options[ 'hd'] = $_POST[ 'youtube_embed_hd' ];
|
| 66 |
+
$options[ 'color' ] = $_POST[ 'youtube_embed_color' ];
|
| 67 |
+
$options[ 'theme' ] = $_POST[ 'youtube_embed_theme' ];
|
| 68 |
$options[ 'https' ] = $_POST[ 'youtube_embed_https' ];
|
| 69 |
$options[ 'modest' ] = $_POST[ 'youtube_embed_modest' ];
|
| 70 |
$options[ 'dynamic' ] = $_POST[ 'youtube_embed_dynamic' ];
|
| 71 |
$options[ 'fixed' ] = $_POST[ 'youtube_embed_fixed' ];
|
| 72 |
|
| 73 |
+
$default_size = $_POST[ 'youtube_embed_size' ];
|
| 74 |
|
| 75 |
if ( $default_size !== '' ) {
|
| 76 |
$options[ 'width' ] = ltrim( substr( $default_size, 0, 4 ), '0' );
|
readme.txt
CHANGED
|
@@ -3,13 +3,15 @@ Contributors: dartiss
|
|
| 3 |
Donate link: http://artiss.co.uk/donate
|
| 4 |
Tags: admin, annotations, artiss, automatic, editor, embed, embedding, embedplus, flash, flv, google, hd, height, iframe, manage, media, plugin, page, play, playlist, post, profile, responsive, search, sidebar, simple, smart, url, user, valid, video, widget, width, xhtml, youtube, youtuber
|
| 5 |
Requires at least: 2.9
|
| 6 |
-
Tested up to: 3.
|
| 7 |
-
Stable tag: 2.5.
|
| 8 |
|
| 9 |
A simple to use method of embedding YouTube videos into your posts and pages but with powerful features for those that need them.
|
| 10 |
|
| 11 |
== Description ==
|
| 12 |
|
|
|
|
|
|
|
| 13 |
Artiss YouTube Embed (formally YouTube Embed) is an incredibly simple, yet powerful, method of embedding YouTube videos into your WordPress site. Options include:
|
| 14 |
|
| 15 |
* XHTML and HTML5 compliant - works with all the latest browsers
|
|
@@ -140,7 +142,7 @@ The template consists simply of any HTML that you wish but with `%video%` where
|
|
| 140 |
|
| 141 |
e.g. `<div align="center">%video%</div>`
|
| 142 |
|
| 143 |
-
Be wary that when adding template via a parameter that any HTML included may cause your video to have
|
| 144 |
|
| 145 |
== Profiles ==
|
| 146 |
|
|
@@ -431,8 +433,11 @@ Although I attempt to keep with PHP 4 compatibility there are no guarantees of t
|
|
| 431 |
|
| 432 |
== Changelog ==
|
| 433 |
|
|
|
|
|
|
|
|
|
|
| 434 |
= 2.5.3 =
|
| 435 |
-
* Bug: Fixed further issues with the widget code (thanks to Rose-Anne Constantineau for reporting it and helping me
|
| 436 |
* Maintenance: Improved some of the internationalisation texts
|
| 437 |
* Maintenance: Neatened up some of the code output
|
| 438 |
|
|
@@ -606,6 +611,9 @@ Although I attempt to keep with PHP 4 compatibility there are no guarantees of t
|
|
| 606 |
|
| 607 |
== Upgrade Notice ==
|
| 608 |
|
|
|
|
|
|
|
|
|
|
| 609 |
= 2.5.3 =
|
| 610 |
* Upgrade to fix issues with widgets
|
| 611 |
|
| 3 |
Donate link: http://artiss.co.uk/donate
|
| 4 |
Tags: admin, annotations, artiss, automatic, editor, embed, embedding, embedplus, flash, flv, google, hd, height, iframe, manage, media, plugin, page, play, playlist, post, profile, responsive, search, sidebar, simple, smart, url, user, valid, video, widget, width, xhtml, youtube, youtuber
|
| 5 |
Requires at least: 2.9
|
| 6 |
+
Tested up to: 3.4.1
|
| 7 |
+
Stable tag: 2.5.4
|
| 8 |
|
| 9 |
A simple to use method of embedding YouTube videos into your posts and pages but with powerful features for those that need them.
|
| 10 |
|
| 11 |
== Description ==
|
| 12 |
|
| 13 |
+
**I'm looking at potentially removing some of the existing features to keep the plugin streamlined - please [vote](http://www.artiss.co.uk/youtube-embed/youtube-embed-features-vote "YouTube Embed Features Vote") on what you'd like me to keep and what you'd be happy for me to jetison!**
|
| 14 |
+
|
| 15 |
Artiss YouTube Embed (formally YouTube Embed) is an incredibly simple, yet powerful, method of embedding YouTube videos into your WordPress site. Options include:
|
| 16 |
|
| 17 |
* XHTML and HTML5 compliant - works with all the latest browsers
|
| 142 |
|
| 143 |
e.g. `<div align="center">%video%</div>`
|
| 144 |
|
| 145 |
+
Be wary that when adding template via a parameter that any HTML included may cause your video to have `<pre>` tags wrapped around it. The easiest way to check and fix this is to view any post in the HTML editor and remove any PRE tags that have been added.
|
| 146 |
|
| 147 |
== Profiles ==
|
| 148 |
|
| 433 |
|
| 434 |
== Changelog ==
|
| 435 |
|
| 436 |
+
= 2.5.4 =
|
| 437 |
+
* Bug: Fixed bug that prevented some fields in options screens to not save
|
| 438 |
+
|
| 439 |
= 2.5.3 =
|
| 440 |
+
* Bug: Fixed further issues with the widget code (thanks to Rose-Anne Constantineau for reporting it and helping me test the result)
|
| 441 |
* Maintenance: Improved some of the internationalisation texts
|
| 442 |
* Maintenance: Neatened up some of the code output
|
| 443 |
|
| 611 |
|
| 612 |
== Upgrade Notice ==
|
| 613 |
|
| 614 |
+
= 2.5.4 =
|
| 615 |
+
* Upgrade to fix an issue with options not updating
|
| 616 |
+
|
| 617 |
= 2.5.3 =
|
| 618 |
* Upgrade to fix issues with widgets
|
| 619 |
|
youtube-embed.php
CHANGED
|
@@ -3,7 +3,7 @@
|
|
| 3 |
Plugin Name: Artiss YouTube Embed
|
| 4 |
Plugin URI: http://www.artiss.co.uk/artiss-youtube-embed
|
| 5 |
Description: Embed YouTube Videos in WordPress
|
| 6 |
-
Version: 2.5.
|
| 7 |
Author: David Artiss
|
| 8 |
Author URI: http://www.artiss.co.uk
|
| 9 |
*/
|
|
@@ -17,7 +17,7 @@ Author URI: http://www.artiss.co.uk
|
|
| 17 |
* @since 2.0
|
| 18 |
*/
|
| 19 |
|
| 20 |
-
define( 'youtube_embed_version', '2.5.
|
| 21 |
|
| 22 |
$functions_dir = WP_PLUGIN_DIR . '/youtube-embed/includes/';
|
| 23 |
|
| 3 |
Plugin Name: Artiss YouTube Embed
|
| 4 |
Plugin URI: http://www.artiss.co.uk/artiss-youtube-embed
|
| 5 |
Description: Embed YouTube Videos in WordPress
|
| 6 |
+
Version: 2.5.4
|
| 7 |
Author: David Artiss
|
| 8 |
Author URI: http://www.artiss.co.uk
|
| 9 |
*/
|
| 17 |
* @since 2.0
|
| 18 |
*/
|
| 19 |
|
| 20 |
+
define( 'youtube_embed_version', '2.5.4' );
|
| 21 |
|
| 22 |
$functions_dir = WP_PLUGIN_DIR . '/youtube-embed/includes/';
|
| 23 |
|
