YouTube Embed - Version 2.6.2

Version Description

  • Bug: Fixed bug in uninstall routine
  • Enhancement: Replaced user of print_r in cache key generator with serialize, as this can cause problems with some hosting configurations
Download this release

Release Info

Developer dartiss
Plugin Icon 128x128 YouTube Embed
Version 2.6.2
Comparing to
See all releases

Code changes from version 2.6.1 to 2.6.2

images/Thumbs.db ADDED
Binary file
includes/aye-generate-embed-code.php CHANGED
@@ -157,7 +157,7 @@ function aye_generate_youtube_code( $id = '', $type = '', $width = '', $height =
157
 
158
  // Generate a cache key for the above passed parameters
159
 
160
- $cache_key = 'aye_video_' . md5( $id . $type . $width . $height . $fullscreen . $related . $autoplay . $loop . $start . $info . $annotation . $cc . $style . $link . $react . $stop . $sweetspot . $disablekb . $ratio . $autohide . $controls . $profile . $list_style . $audio . $template . $hd . $color . $theme . $https . $dynamic . $search . $user . print_r( $general, true ) . print_r( $options, true ) . print_r( $list, true ) . print_r( $return, true ) );
161
 
162
  // Try and get the output from cache. If it exists, return the code
163
 
157
 
158
  // Generate a cache key for the above passed parameters
159
 
160
+ $cache_key = 'aye_video_' . md5( $id . $type . $width . $height . $fullscreen . $related . $autoplay . $loop . $start . $info . $annotation . $cc . $style . $link . $react . $stop . $sweetspot . $disablekb . $ratio . $autohide . $controls . $profile . $list_style . $audio . $template . $hd . $color . $theme . $https . $dynamic . $search . $user . serialize( $general ) . serialize( $options ) . serialize( $list ) . serialize( $return ) );
161
 
162
  // Try and get the output from cache. If it exists, return the code
163
 
readme.txt CHANGED
@@ -4,7 +4,7 @@ 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.2
7
- Stable tag: 2.6.1
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
 
@@ -444,6 +444,10 @@ Although I attempt to keep with PHP 4 compatibility there are no guarantees of t
444
 
445
  == Changelog ==
446
 
 
 
 
 
447
  = 2.6.1 =
448
  * Bug: Fixed minimised script that adds editor button
449
  * Bug: Updated broken advert links
@@ -671,6 +675,9 @@ Although I attempt to keep with PHP 4 compatibility there are no guarantees of t
671
 
672
  == Upgrade Notice ==
673
 
 
 
 
674
  = 2.6.1 =
675
  * Update to fix some bugs introduced in 2.6
676
 
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.2
7
+ Stable tag: 2.6.2
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
 
444
 
445
  == Changelog ==
446
 
447
+ = 2.6.2 =
448
+ * Bug: Fixed bug in uninstall routine
449
+ * Enhancement: Replaced user of print_r in cache key generator with serialize, as this can cause problems with some hosting configurations
450
+
451
  = 2.6.1 =
452
  * Bug: Fixed minimised script that adds editor button
453
  * Bug: Updated broken advert links
675
 
676
  == Upgrade Notice ==
677
 
678
+ = 2.6.2 =
679
+ * Update to fix an uninstaller bug and a problem that may affect some hosts
680
+
681
  = 2.6.1 =
682
  * Update to fix some bugs introduced in 2.6
683
 
uninstall.php CHANGED
@@ -54,5 +54,9 @@ delete_option( 'youtube_embed_activated' );
54
 
55
  // Delete cookie
56
 
57
- setcookie ( 'aye_mce_shortcode', '', time() - 3600, aye_get_cookie_path() );
 
 
 
 
58
  ?>
54
 
55
  // Delete cookie
56
 
57
+ $path = str_replace( 'http://', '', site_url( '/', 'http' ) );
58
+ $pos = strpos( $path, '/' );
59
+ $path = substr( $path, $pos ) . 'wp-content/';
60
+
61
+ setcookie( 'aye_mce_shortcode', '', time() - 3600, $path );
62
  ?>
youtube-embed.php CHANGED
@@ -3,7 +3,7 @@
3
  Plugin Name: Artiss YouTube Embed
4
  Plugin URI: http://www.artiss.co.uk/youtube-embed
5
  Description: Embed YouTube Videos in WordPress
6
- Version: 2.6.1
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.6.1' );
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/youtube-embed
5
  Description: Embed YouTube Videos in WordPress
6
+ Version: 2.6.2
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.6.2' );
21
 
22
  $functions_dir = WP_PLUGIN_DIR . '/youtube-embed/includes/';
23