YouTube Channel - Version 3.0.10.4

Version Description

(20170123) = * Fix: once enabled FMVD notice has not auto dismissed. * Change: input type for YouTube Data API Key from password to text so key is visible by webmaster and prevent messing with autofill browser extensions

Download this release

Release Info

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

Code changes from version 3.0.10.3 to 3.0.10.4

Files changed (3) hide show
  1. inc/settings.php +9 -1
  2. readme.txt +9 -2
  3. youtube-channel.php +2 -2
inc/settings.php CHANGED
@@ -50,7 +50,7 @@ if ( ! class_exists( 'WPAU_YOUTUBE_CHANNEL_SETTINGS' ) ) {
50
  add_settings_field(
51
  $this->option_name . 'apikey', // Setting Slug
52
  __( 'YouTube Data API Key', 'youtube-channel' ), // Title
53
- array( &$this, 'settings_field_input_password' ), // Callback
54
  $this->slug . '_general', // Page Name
55
  'ytc_general', // Section Name
56
  array(
@@ -1038,7 +1038,15 @@ if ( ! class_exists( 'WPAU_YOUTUBE_CHANNEL_SETTINGS' ) ) {
1038
  $sanitized['num'] = ( ! empty( $options['num'] ) ) ? intval( $options['num'] ) : $this->defaults['num'];
1039
  $sanitized['privacy'] = ( ! empty( $options['privacy'] ) && $options['privacy'] ) ? 1 : 0;
1040
  $sanitized['tinymce'] = ( ! empty( $options['tinymce'] ) && $options['tinymce'] ) ? 1 : 0;
 
1041
  $sanitized['fmvd'] = ! empty( $options['fmvd'] ) ? 1 : 0;
 
 
 
 
 
 
 
1042
  break; // General
1043
 
1044
  // --- Video ---
50
  add_settings_field(
51
  $this->option_name . 'apikey', // Setting Slug
52
  __( 'YouTube Data API Key', 'youtube-channel' ), // Title
53
+ array( &$this, 'settings_field_input_text' ), // Callback
54
  $this->slug . '_general', // Page Name
55
  'ytc_general', // Section Name
56
  array(
1038
  $sanitized['num'] = ( ! empty( $options['num'] ) ) ? intval( $options['num'] ) : $this->defaults['num'];
1039
  $sanitized['privacy'] = ( ! empty( $options['privacy'] ) && $options['privacy'] ) ? 1 : 0;
1040
  $sanitized['tinymce'] = ( ! empty( $options['tinymce'] ) && $options['tinymce'] ) ? 1 : 0;
1041
+ // Disable FMVD notice when option is once enabled
1042
  $sanitized['fmvd'] = ! empty( $options['fmvd'] ) ? 1 : 0;
1043
+ if ( $sanitized['fmvd'] ) {
1044
+ $dismissed_notices = get_option( 'youtube_channel_dismissed_notices' );
1045
+ if ( empty( $dismissed_notices['fmvd'] ) ) {
1046
+ $dismissed_notices['fmvd'] = 1;
1047
+ update_option( 'youtube_channel_dismissed_notices', $dismissed_notices );
1048
+ }
1049
+ }
1050
  break; // General
1051
 
1052
  // --- Video ---
readme.txt CHANGED
@@ -3,8 +3,8 @@ Contributors: urkekg
3
  Donate link: https://urosevic.net/wordpress/donate/?donate_for=youtube-channel
4
  Tags: youtube, channel, playlist, single, widget, widgets, youtube player, feed, video, thumbnail, embed, sidebar, iframe, html5, responsive
5
  Requires at least: 4.0
6
- Tested up to: 4.7.1
7
- Stable tag: 3.0.10.3
8
  License: GPLv3
9
  License URI: http://www.gnu.org/licenses/gpl-3.0.html
10
 
@@ -333,6 +333,9 @@ and custom CSS code added to theme style.css or similar customization:
333
 
334
  So, we display thumbnails for 7 random videos from default (global) playlist, and distribute small thumbnails to 3 columns on wide screens, 2 columns under 768px and single thumbnail per row under 480px.
335
 
 
 
 
336
 
337
  = How to reduce size of/remove thumbnail Play button? =
338
 
@@ -354,6 +357,10 @@ If you really need that missing feature ASAP, feel free to [contact me](urosevic
354
  If you don't wish to pay for enhancements (then you don't care would that be implemented in a week, month, year or so), then send new [Support topic](https://wordpress.org/support/plugin/youtube-channel) with *Topic title* in format **[Feature Request] ...**
355
 
356
  == Changelog ==
 
 
 
 
357
  = 3.0.10.3 (20170114) =
358
  * Add opt-in option Freemage Video Downloader
359
  * Code cleanup: delete unused admin.js file
3
  Donate link: https://urosevic.net/wordpress/donate/?donate_for=youtube-channel
4
  Tags: youtube, channel, playlist, single, widget, widgets, youtube player, feed, video, thumbnail, embed, sidebar, iframe, html5, responsive
5
  Requires at least: 4.0
6
+ Tested up to: 4.7.2
7
+ Stable tag: 3.0.10.4
8
  License: GPLv3
9
  License URI: http://www.gnu.org/licenses/gpl-3.0.html
10
 
333
 
334
  So, we display thumbnails for 7 random videos from default (global) playlist, and distribute small thumbnails to 3 columns on wide screens, 2 columns under 768px and single thumbnail per row under 480px.
335
 
336
+ = How I can add pagination (for example to Dynamic Wall view)? =
337
+
338
+ Unfortunately, YouTube Channel does not support pagination, so you’ll get only defined number of YouTube items in block in single view, no matter did you choose thumbnail or HTML5 Embed as mode.
339
 
340
  = How to reduce size of/remove thumbnail Play button? =
341
 
357
  If you don't wish to pay for enhancements (then you don't care would that be implemented in a week, month, year or so), then send new [Support topic](https://wordpress.org/support/plugin/youtube-channel) with *Topic title* in format **[Feature Request] ...**
358
 
359
  == Changelog ==
360
+ = 3.0.10.4 (20170123) =
361
+ * Fix: once enabled FMVD notice has not auto dismissed.
362
+ * Change: input type for YouTube Data API Key from password to text so key is visible by webmaster and prevent messing with autofill browser extensions
363
+
364
  = 3.0.10.3 (20170114) =
365
  * Add opt-in option Freemage Video Downloader
366
  * Code cleanup: delete unused admin.js file
youtube-channel.php CHANGED
@@ -3,7 +3,7 @@
3
  Plugin Name: YouTube Channel
4
  Plugin URI: https://urosevic.net/wordpress/plugins/youtube-channel/
5
  Description: Quick and easy embed latest or random videos from YouTube channel (user uploads, liked or favourited videos) or playlist. Use <a href="widgets.php">widget</a> for sidebar or shortcode for content. Works with <em>YouTube Data API v3</em>.
6
- Version: 3.0.10.3
7
  Author: Aleksandar Urošević
8
  Author URI: https://urosevic.net/
9
  Text Domain: youtube-channel
@@ -18,7 +18,7 @@ if ( ! class_exists( 'WPAU_YOUTUBE_CHANNEL' ) ) {
18
  class WPAU_YOUTUBE_CHANNEL {
19
 
20
  const DB_VER = 16;
21
- const VER = '3.0.10.3';
22
 
23
  public $plugin_name = 'YouTube Channel';
24
  public $plugin_slug = 'youtube-channel';
3
  Plugin Name: YouTube Channel
4
  Plugin URI: https://urosevic.net/wordpress/plugins/youtube-channel/
5
  Description: Quick and easy embed latest or random videos from YouTube channel (user uploads, liked or favourited videos) or playlist. Use <a href="widgets.php">widget</a> for sidebar or shortcode for content. Works with <em>YouTube Data API v3</em>.
6
+ Version: 3.0.10.4
7
  Author: Aleksandar Urošević
8
  Author URI: https://urosevic.net/
9
  Text Domain: youtube-channel
18
  class WPAU_YOUTUBE_CHANNEL {
19
 
20
  const DB_VER = 16;
21
+ const VER = '3.0.10.4';
22
 
23
  public $plugin_name = 'YouTube Channel';
24
  public $plugin_slug = 'youtube-channel';