YouTube Channel - Version 3.0.6.2

Version Description

(2015-05-15) = * Fix: Fatal error: Cannot unset string offsets in update.php on line 229 (introduced in 3.0.6.1) * Add: Helpfull links to plugin settings page

Download this release

Release Info

Developer urkekg
Plugin Icon YouTube Channel
Version 3.0.6.2
Comparing to
See all releases

Code changes from version 3.0.6.1 to 3.0.6.2

Files changed (4) hide show
  1. inc/settings.php +3 -3
  2. readme.txt +6 -1
  3. update.php +8 -4
  4. youtube-channel.php +3 -3
inc/settings.php CHANGED
@@ -49,7 +49,7 @@ if ( ! class_exists('WPAU_YOUTUBE_CHANNEL_SETTINGS') ) {
49
  'ytc_general', // Section Name
50
  array(
51
  'field' => $this->option_name . '[apikey]',
52
- 'description' => __('Your YouTube Data API Key', 'wpsk'),
53
  'class' => 'regular-text password',
54
  'value' => $this->defaults['apikey'],
55
  ) // args
@@ -63,7 +63,7 @@ if ( ! class_exists('WPAU_YOUTUBE_CHANNEL_SETTINGS') ) {
63
  'ytc_general', // Section Name
64
  array(
65
  'field' => $this->option_name . '[channel]',
66
- 'description' => __('Your YouTube Channel ID (ID only starting with UC, not full URL)', 'wpsk'),
67
  'class' => 'regular-text',
68
  'value' => $this->defaults['channel'],
69
  ) // args
@@ -77,7 +77,7 @@ if ( ! class_exists('WPAU_YOUTUBE_CHANNEL_SETTINGS') ) {
77
  'ytc_general', // section
78
  array(
79
  'field' => $this->option_name . "[vanity]",
80
- 'description' => __('Your YouTube Custom Name (only part after www.youtube.com/c/ instead whole URL)', 'wpsk'),
81
  'class' => 'regular-text',
82
  'value' => $this->defaults['vanity'],
83
  ) // args
49
  'ytc_general', // Section Name
50
  array(
51
  'field' => $this->option_name . '[apikey]',
52
+ 'description' => sprintf(__('Your YouTube Data API Key (get it from <a href="%s" target="_blank">Google Developers Console</a>)', 'wpsk'), 'https://console.developers.google.com/project'),
53
  'class' => 'regular-text password',
54
  'value' => $this->defaults['apikey'],
55
  ) // args
63
  'ytc_general', // Section Name
64
  array(
65
  'field' => $this->option_name . '[channel]',
66
+ 'description' => sprintf(__('Your YouTube Channel ID (get it from <a href="%s" target="_blank">YouTube Account Overview</a>)', 'wpsk'), 'https://www.youtube.com/account_advanced'),
67
  'class' => 'regular-text',
68
  'value' => $this->defaults['channel'],
69
  ) // args
77
  'ytc_general', // section
78
  array(
79
  'field' => $this->option_name . "[vanity]",
80
+ 'description' => sprintf(__('Your YouTube Custom Name (get only part after www.youtube.com/c/ instead whole URL from <a href="%s" target="_blank">YouTube Account Overview</a>)', 'wpsk'), 'https://www.youtube.com/account_advanced'),
81
  'class' => 'regular-text',
82
  'value' => $this->defaults['vanity'],
83
  ) // args
readme.txt CHANGED
@@ -4,7 +4,7 @@ Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_i
4
  Tags: youtube, channel, playlist, single, widget, widgets, youtube player, feed, video, thumbnail, embed, sidebar, iframe, html5, responsive
5
  Requires at least: 3.9.0
6
  Tested up to: 4.2.2
7
- Stable tag: 3.0.6.1
8
  License: GPLv3
9
  License URI: http://www.gnu.org/licenses/gpl-3.0.html
10
 
@@ -284,9 +284,14 @@ So, we display thumbnails for 7 random videos from default (global) playlist, an
284
 
285
  == Changelog ==
286
 
 
 
 
 
287
  = 3.0.6.1 (2015-05-14) =
288
  * Fix: Undefined index: random
289
  * Fix: Unremoved only_pl from global settings
 
290
 
291
  = 3.0.6 (2015-05-13/14) =
292
 
4
  Tags: youtube, channel, playlist, single, widget, widgets, youtube player, feed, video, thumbnail, embed, sidebar, iframe, html5, responsive
5
  Requires at least: 3.9.0
6
  Tested up to: 4.2.2
7
+ Stable tag: 3.0.6.2
8
  License: GPLv3
9
  License URI: http://www.gnu.org/licenses/gpl-3.0.html
10
 
284
 
285
  == Changelog ==
286
 
287
+ = 3.0.6.2 (2015-05-15) =
288
+ * Fix: Fatal error: Cannot unset string offsets in update.php on line 229 (introduced in 3.0.6.1)
289
+ * Add: Helpfull links to plugin settings page
290
+
291
  = 3.0.6.1 (2015-05-14) =
292
  * Fix: Undefined index: random
293
  * Fix: Unremoved only_pl from global settings
294
+ * Add: Box sizing of .youtube_channel element for crappy themes
295
 
296
  = 3.0.6 (2015-05-13/14) =
297
 
update.php CHANGED
@@ -226,19 +226,23 @@ function au_youtube_channel_update_routine_5() {
226
 
227
  // get options from DB
228
  $defaults = get_option('youtube_channel_defaults');
229
- unset($defaults['only_pl']);
230
 
231
- if ( defined('YOUTUBE_DATA_API_KEY') ) {
 
 
232
 
 
233
 
234
  if ( empty($defaults['apikey']) ) {
235
  $defaults['apikey'] = YOUTUBE_DATA_API_KEY;
236
  }
237
- unset($defaults);
238
 
239
  }
240
 
241
- update_option('youtube_channel_defaults', $defaults);
 
 
 
242
 
243
  // remove unused keys from DB
244
  delete_option('youtube_channel_ver');
226
 
227
  // get options from DB
228
  $defaults = get_option('youtube_channel_defaults');
 
229
 
230
+ if ( isset($defaults['only_pl']) ) {
231
+ unset($defaults['only_pl']);
232
+ }
233
 
234
+ if ( defined('YOUTUBE_DATA_API_KEY') ) {
235
 
236
  if ( empty($defaults['apikey']) ) {
237
  $defaults['apikey'] = YOUTUBE_DATA_API_KEY;
238
  }
 
239
 
240
  }
241
 
242
+ if ( isset($defaults) ) {
243
+ update_option('youtube_channel_defaults', $defaults);
244
+ unset($defaults);
245
+ }
246
 
247
  // remove unused keys from DB
248
  delete_option('youtube_channel_ver');
youtube-channel.php CHANGED
@@ -4,7 +4,7 @@ Plugin Name: YouTube Channel
4
  Plugin URI: http://urosevic.net/wordpress/plugins/youtube-channel/
5
  Description: <a href="widgets.php">Widget</a> that display latest video thumbnail or iframe (HTML5) video from YouTube Channel, Liked Videos, Favourites or Playlist.
6
  Author: Aleksandar Urošević
7
- Version: 3.0.6.1
8
  Author URI: http://urosevic.net/
9
  */
10
  // @TODO make FitVideo optional
@@ -17,8 +17,8 @@ if ( !class_exists('WPAU_YOUTUBE_CHANNEL') )
17
  class WPAU_YOUTUBE_CHANNEL
18
  {
19
 
20
- const DB_VER = 5;
21
- const VER = '3.0.6.1';
22
 
23
  public $plugin_name = "YouTube Channel";
24
  public $plugin_slug = "youtube-channel";
4
  Plugin URI: http://urosevic.net/wordpress/plugins/youtube-channel/
5
  Description: <a href="widgets.php">Widget</a> that display latest video thumbnail or iframe (HTML5) video from YouTube Channel, Liked Videos, Favourites or Playlist.
6
  Author: Aleksandar Urošević
7
+ Version: 3.0.6.2
8
  Author URI: http://urosevic.net/
9
  */
10
  // @TODO make FitVideo optional
17
  class WPAU_YOUTUBE_CHANNEL
18
  {
19
 
20
+ const DB_VER = 6;
21
+ const VER = '3.0.6.2';
22
 
23
  public $plugin_name = "YouTube Channel";
24
  public $plugin_slug = "youtube-channel";