YouTube - Version 11.8.1

Version Description

Download this release

Release Info

Developer embedplus
Plugin Icon 128x128 YouTube
Version 11.8.1
Comparing to
See all releases

Code changes from version 11.8 to 11.8.1

Files changed (2) hide show
  1. readme.txt +5 -2
  2. youtube.php +11 -8
readme.txt CHANGED
@@ -3,8 +3,8 @@ Contributors: embedplus
3
  Plugin Name: YouTube Embed
4
  Tags: youtube gallery, video gallery, youtube channel, youtube live, live stream
5
  Requires at least: 3.6.1
6
- Tested up to: 4.7
7
- Stable tag: 11.8
8
  License: GPLv3 or later
9
 
10
  YouTube Embed WordPress Plugin. Embed a responsive video, YouTube channel gallery, playlist gallery, or YouTube.com live stream
@@ -145,6 +145,9 @@ You can also start and end each individual video at particular times. Like the a
145
 
146
  == Changelog ==
147
 
 
 
 
148
  = WordPress YouTube Embed 11.8 =
149
  * Improved AJAX theme compatability
150
  * Ability to choose which roles can use the editor wizard
3
  Plugin Name: YouTube Embed
4
  Tags: youtube gallery, video gallery, youtube channel, youtube live, live stream
5
  Requires at least: 3.6.1
6
+ Tested up to: 4.8
7
+ Stable tag: 11.8.1
8
  License: GPLv3 or later
9
 
10
  YouTube Embed WordPress Plugin. Embed a responsive video, YouTube channel gallery, playlist gallery, or YouTube.com live stream
145
 
146
  == Changelog ==
147
 
148
+ = WordPress YouTube Embed 11.8.1 =
149
+ * Fix playlist gallery issue
150
+
151
  = WordPress YouTube Embed 11.8 =
152
  * Improved AJAX theme compatability
153
  * Ability to choose which roles can use the editor wizard
youtube.php CHANGED
@@ -3,7 +3,7 @@
3
  Plugin Name: YouTube
4
  Plugin URI: http://www.embedplus.com/dashboard/pro-easy-video-analytics.aspx
5
  Description: YouTube Embed and YouTube Gallery WordPress Plugin. Embed a responsive video, YouTube channel, playlist gallery, or live stream
6
- Version: 11.8
7
  Author: EmbedPlus Team
8
  Author URI: http://www.embedplus.com
9
  */
@@ -33,7 +33,7 @@ class YouTubePrefs
33
  {
34
 
35
  public static $curltimeout = 20;
36
- public static $version = '11.8';
37
  public static $opt_version = 'version';
38
  public static $optembedwidth = null;
39
  public static $optembedheight = null;
@@ -1947,8 +1947,11 @@ class YouTubePrefs
1947
 
1948
  if (isset($jsonResult->items) && $jsonResult->items != null && is_array($jsonResult->items))
1949
  {
1950
- // sort items
1951
- usort($jsonResult->items, array(get_class(), 'compare_vid_date')); // sorts in place
 
 
 
1952
 
1953
  foreach ($jsonResult->items as $item)
1954
  {
@@ -2604,11 +2607,11 @@ class YouTubePrefs
2604
  $new_pointer_content .= '<p>'; // ooopointer
2605
  if (!(self::$alloptions[self::$opt_pro] && strlen(trim(self::$alloptions[self::$opt_pro])) > 0))
2606
  {
2607
- $new_pointer_content .= __("This update includes role settings for the wizard, improved AJAX theme compatibility, and many more bug fixes for the Free and <a target=_blank href=" . self::$epbase . '/dashboard/pro-easy-video-analytics.aspx?ref=frompointer' . ">Pro versions &raquo;</a>");
2608
  }
2609
  else
2610
  {
2611
- $new_pointer_content .= __("This update includes role settings for the wizard, improved AJAX theme compatibility, and many more bug fixes for the Free and Pro versions. " . '<strong>Important message to YouTube Pro users</strong>: From version 11.7 onward, you must <a href="https://www.embedplus.com/youtube-pro/download/?prokey=' . esc_attr(self::$alloptions[self::$opt_pro]) . '" target="_blank">download the separate plugin here</a> to regain your Pro features. All your settings will automatically migrate after installing the separate Pro download. Thank you for your support and patience during this transition.');
2612
  }
2613
  $new_pointer_content .= '</p>';
2614
 
@@ -2878,7 +2881,7 @@ class YouTubePrefs
2878
 
2879
  update_option(self::$opt_alloptions, $all);
2880
  ?>
2881
- <div class="updated"><p><strong><?php _e('Changes saved.'); ?></strong></p></div>
2882
  <?php
2883
  }
2884
 
@@ -3930,7 +3933,7 @@ class YouTubePrefs
3930
  ?>
3931
  <p class="submit">
3932
  <input type="submit" onclick="return savevalidate();" name="Submit" class="button-primary ytprefs-submit" value="<?php _e($button_label) ?>" />
3933
- <em>If you're using a separate caching plugin and you do not see your changes after saving, you might want to reset your cache.</em>
3934
  </p>
3935
  <?php
3936
  }
3
  Plugin Name: YouTube
4
  Plugin URI: http://www.embedplus.com/dashboard/pro-easy-video-analytics.aspx
5
  Description: YouTube Embed and YouTube Gallery WordPress Plugin. Embed a responsive video, YouTube channel, playlist gallery, or live stream
6
+ Version: 11.8.1
7
  Author: EmbedPlus Team
8
  Author URI: http://www.embedplus.com
9
  */
33
  {
34
 
35
  public static $curltimeout = 20;
36
+ public static $version = '11.8.1';
37
  public static $opt_version = 'version';
38
  public static $optembedwidth = null;
39
  public static $optembedheight = null;
1947
 
1948
  if (isset($jsonResult->items) && $jsonResult->items != null && is_array($jsonResult->items))
1949
  {
1950
+ if (strpos($options->playlistId, 'UU') === 0)
1951
+ {
1952
+ // sort only channels
1953
+ usort($jsonResult->items, array(get_class(), 'compare_vid_date')); // sorts in place
1954
+ }
1955
 
1956
  foreach ($jsonResult->items as $item)
1957
  {
2607
  $new_pointer_content .= '<p>'; // ooopointer
2608
  if (!(self::$alloptions[self::$opt_pro] && strlen(trim(self::$alloptions[self::$opt_pro])) > 0))
2609
  {
2610
+ $new_pointer_content .= __("This update fixes a playlist gallery issue for Free and <a target=_blank href=" . self::$epbase . '/dashboard/pro-easy-video-analytics.aspx?ref=frompointer' . ">Pro versions &raquo;</a>");
2611
  }
2612
  else
2613
  {
2614
+ $new_pointer_content .= __("This update fixes a playlist gallery issue for Free and Pro versions. " . '<strong>Important message to YouTube Pro users</strong>: From version 11.7 onward, you must <a href="https://www.embedplus.com/youtube-pro/download/?prokey=' . esc_attr(self::$alloptions[self::$opt_pro]) . '" target="_blank">download the separate plugin here</a> to regain your Pro features. All your settings will automatically migrate after installing the separate Pro download. Thank you for your support and patience during this transition.');
2615
  }
2616
  $new_pointer_content .= '</p>';
2617
 
2881
 
2882
  update_option(self::$opt_alloptions, $all);
2883
  ?>
2884
+ <div class="updated"><p><strong><?php _e('Changes saved.'); ?> <em>If you're using a separate caching plugin and you do not see your changes after saving, <strong class="orange">you need to reset your cache.</strong></em></strong></p></div>
2885
  <?php
2886
  }
2887
 
3933
  ?>
3934
  <p class="submit">
3935
  <input type="submit" onclick="return savevalidate();" name="Submit" class="button-primary ytprefs-submit" value="<?php _e($button_label) ?>" />
3936
+ <em>If you're using a separate caching plugin and you do not see your changes after saving, <strong class="orange">you need to reset your cache.</strong></em>
3937
  </p>
3938
  <?php
3939
  }