WP YouTube Lyte - Version 1.7.13

Version Description

  • fix regression causing HTML comments to break
Download this release

Release Info

Developer futtta
Plugin Icon 128x128 WP YouTube Lyte
Version 1.7.13
Comparing to
See all releases

Code changes from version 1.7.12 to 1.7.13

Files changed (3) hide show
  1. lyteCache.php +0 -1
  2. readme.txt +7 -4
  3. wp-youtube-lyte.php +6 -4
lyteCache.php CHANGED
@@ -188,7 +188,6 @@ function lyte_str_ends_in($haystack,$needle) {
188
  }
189
 
190
  function lyte_get_thumb($thumbUrl) {
191
- error_log('getting '.$thumbUrl);
192
  global $lyte_thumb_error;
193
  if (function_exists("curl_init")) {
194
  $curl = curl_init();
188
  }
189
 
190
  function lyte_get_thumb($thumbUrl) {
 
191
  global $lyte_thumb_error;
192
  if (function_exists("curl_init")) {
193
  $curl = curl_init();
readme.txt CHANGED
@@ -4,7 +4,7 @@ Tags: youtube, video, performance, gdpr, lazy load
4
  Donate link: http://blog.futtta.be/2013/10/21/do-not-donate-to-me/
5
  Requires at least: 4.0
6
  Tested up to: 5.5
7
- Stable tag: 1.7.12
8
 
9
  High performance YouTube video, playlist and audio-only embeds which don't slow down your blog and offer optimal accessibility.
10
 
@@ -22,9 +22,9 @@ The plugin picks up on normal YouTube links, taking over from WordPress core's o
22
  * httpv://www.youtube.com/watch?v=_SQkWbRublY?start=20&showinfo=0 (video player, start playing at 20 seconds and don't show title)
23
 
24
  Or using shortcodes:
25
- `[lyte id="_SQkWbRublY" /]`
26
- `[lyte id="_SQkWbRublY" audio="true" /]`
27
- `[lyte id="A486E741B25F8E00" playlist="true" /]`
28
 
29
  WP YouTube Lyte has been written with optimal performance as primary goal, but has been tested for maximum browser-compatibility (iPad included) while keeping an eye on accessibility. Starting with version 1.2.0 lyte embeds are fully responsive and can automatically embed [videoObject microdata](http://support.google.com/webmasters/bin/answer.py?hl=en&answer=2413309) as well. The plugin is fully multi-language, with support for Catalan, Dutch, English, French, German, Hebrew, Romanian, Spanish and Slovene.
30
 
@@ -135,6 +135,9 @@ Just tell me, I like the feedback! Use the [Contact-page on my blog](http://blog
135
 
136
  == Changelog ==
137
 
 
 
 
138
  = 1.7.12 =
139
  * fix for dash becoming double dash
140
  * move lyteThumbs.php to lyteCache.php because security solutions generally are traumatized by all things thumbs
4
  Donate link: http://blog.futtta.be/2013/10/21/do-not-donate-to-me/
5
  Requires at least: 4.0
6
  Tested up to: 5.5
7
+ Stable tag: 1.7.13
8
 
9
  High performance YouTube video, playlist and audio-only embeds which don't slow down your blog and offer optimal accessibility.
10
 
22
  * httpv://www.youtube.com/watch?v=_SQkWbRublY?start=20&showinfo=0 (video player, start playing at 20 seconds and don't show title)
23
 
24
  Or using shortcodes:
25
+ [lyte id='_SQkWbRublY' /]
26
+ [lyte id='_SQkWbRublY' audio='true' /]
27
+ [lyte id='A486E741B25F8E00' playlist='true' /]
28
 
29
  WP YouTube Lyte has been written with optimal performance as primary goal, but has been tested for maximum browser-compatibility (iPad included) while keeping an eye on accessibility. Starting with version 1.2.0 lyte embeds are fully responsive and can automatically embed [videoObject microdata](http://support.google.com/webmasters/bin/answer.py?hl=en&answer=2413309) as well. The plugin is fully multi-language, with support for Catalan, Dutch, English, French, German, Hebrew, Romanian, Spanish and Slovene.
30
 
135
 
136
  == Changelog ==
137
 
138
+ = 1.7.13 =
139
+ * fix regression causing HTML comments to break
140
+
141
  = 1.7.12 =
142
  * fix for dash becoming double dash
143
  * move lyteThumbs.php to lyteCache.php because security solutions generally are traumatized by all things thumbs
wp-youtube-lyte.php CHANGED
@@ -4,7 +4,7 @@ Plugin Name: WP YouTube Lyte
4
  Plugin URI: http://blog.futtta.be/wp-youtube-lyte/
5
  Description: Lite and accessible YouTube audio and video embedding.
6
  Author: Frank Goossens (futtta)
7
- Version: 1.7.12
8
  Author URI: http://blog.futtta.be/
9
  Text Domain: wp-youtube-lyte
10
  Domain Path: /languages
@@ -13,7 +13,7 @@ Domain Path: /languages
13
  if ( ! defined( 'ABSPATH' ) ) exit;
14
 
15
  $debug=false;
16
- $lyte_version="1.7.12";
17
  $lyte_db_version=get_option('lyte_version','none');
18
 
19
  /** have we updated? */
@@ -405,8 +405,10 @@ function lyte_parse($the_content,$doExcerpt=false) {
405
  }
406
  }
407
 
408
- // replace remaining double dash
409
- $the_content = str_replace( array( ' -- ', '-- ', ' --' ), ' &#8211 ', $the_content );
 
 
410
 
411
  /** API: filter hook to postparse the_content before returning */
412
  $the_content = apply_filters( 'lyte_content_postparse',$the_content );
4
  Plugin URI: http://blog.futtta.be/wp-youtube-lyte/
5
  Description: Lite and accessible YouTube audio and video embedding.
6
  Author: Frank Goossens (futtta)
7
+ Version: 1.7.13
8
  Author URI: http://blog.futtta.be/
9
  Text Domain: wp-youtube-lyte
10
  Domain Path: /languages
13
  if ( ! defined( 'ABSPATH' ) ) exit;
14
 
15
  $debug=false;
16
+ $lyte_version="1.7.13";
17
  $lyte_db_version=get_option('lyte_version','none');
18
 
19
  /** have we updated? */
405
  }
406
  }
407
 
408
+ // replace remaining double dash but restore it in comment tags (this is getting ugly though).
409
+ $the_content = str_replace( array( ' -- ', '-- ', ' --' ), ' – ', $the_content );
410
+ $the_content = str_replace( '<! &#8211;', '<!--', $the_content );
411
+ $the_content = str_replace( '&#8211; >', '-->', $the_content );
412
 
413
  /** API: filter hook to postparse the_content before returning */
414
  $the_content = apply_filters( 'lyte_content_postparse',$the_content );