Featured Video Plus - Version 2.0.2

Version Description

Only upgrade when using WordPress 3.7 or higher! Big refactor with support for more video providers.

=

Download this release

Release Info

Developer a.hoereth
Plugin Icon 128x128 Featured Video Plus
Version 2.0.2
Comparing to
See all releases

Code changes from version 2.0.1 to 2.0.2

CHANGELOG.md CHANGED
@@ -1,6 +1,6 @@
1
  # Changelog #
2
 
3
- ## 2.0.0: 2015-06-01 ##
4
  * __Requires WordPress 3.7 or higher now!__ This reflects versions of WordPress which are "officially" [supported](https://codex.wordpress.org/Supported_Versions). The plugin will from now on try to stick to supporting all versions listed there.
5
  * Major code refactor which results in many bugs scrubbed.
6
  * Support for raw embed codes and [all WordPress core media providers](https://codex.wordpress.org/Embeds#Okay.2C_So_What_Sites_Can_I_Embed_From.3F).
1
  # Changelog #
2
 
3
+ ## 2.0.0, 2.0.1, 2.0.2: 2015-06-01 ##
4
  * __Requires WordPress 3.7 or higher now!__ This reflects versions of WordPress which are "officially" [supported](https://codex.wordpress.org/Supported_Versions). The plugin will from now on try to stick to supporting all versions listed there.
5
  * Major code refactor which results in many bugs scrubbed.
6
  * Support for raw embed codes and [all WordPress core media providers](https://codex.wordpress.org/Embeds#Okay.2C_So_What_Sites_Can_I_Embed_From.3F).
README.md CHANGED
@@ -79,7 +79,7 @@ When editing your theme's sourcecode keep in mind that a future update through W
79
 
80
  ## Upgrade Notice ##
81
 
82
- ### 2.0.0 ###
83
  Only upgrade when using WordPress 3.7 or higher! Big refactor with support for more video providers.
84
 
85
 
79
 
80
  ## Upgrade Notice ##
81
 
82
+ ### 2.0.2 ###
83
  Only upgrade when using WordPress 3.7 or higher! Big refactor with support for more video providers.
84
 
85
 
featured-video-plus.php CHANGED
@@ -3,7 +3,7 @@
3
  Plugin Name: Featured Video Plus
4
  Plugin URI: http://yrnxt.com/wordpress/featured-video-plus/
5
  Description: Add Featured Videos to your posts and pages.
6
- Version: 2.0.1
7
  Author: Alexander Höreth
8
  Author URI: http://yrnxt.com
9
  Text Domain: featured-video-plus
@@ -32,7 +32,7 @@ License: GPL2
32
  // ********************
33
  // CONSTANTS
34
  if ( ! defined( 'FVP_VERSION' ) ) {
35
- define( 'FVP_VERSION', '2.0.1' );
36
  }
37
 
38
  $pathinfo = pathinfo( dirname( plugin_basename( __FILE__ ) ) );
3
  Plugin Name: Featured Video Plus
4
  Plugin URI: http://yrnxt.com/wordpress/featured-video-plus/
5
  Description: Add Featured Videos to your posts and pages.
6
+ Version: 2.0.2
7
  Author: Alexander Höreth
8
  Author URI: http://yrnxt.com
9
  Text Domain: featured-video-plus
32
  // ********************
33
  // CONSTANTS
34
  if ( ! defined( 'FVP_VERSION' ) ) {
35
+ define( 'FVP_VERSION', '2.0.2' );
36
  }
37
 
38
  $pathinfo = pathinfo( dirname( plugin_basename( __FILE__ ) ) );
php/class-backend.php CHANGED
@@ -316,7 +316,7 @@ class FVP_Backend extends Featured_Video_Plus {
316
 
317
  // has featured image AND url did not change or is and was empty
318
  if (
319
- ! $post['fvp_set_featimg'] && (
320
  ( ! empty( $meta['full'] ) && $url == $meta['full'] ) ||
321
  ( empty( $meta['full'] ) && empty( $url ) )
322
  )
316
 
317
  // has featured image AND url did not change or is and was empty
318
  if (
319
+ ( empty ( $post['fvp_set_featimg'] ) || ! $post['fvp_set_featimg'] ) && (
320
  ( ! empty( $meta['full'] ) && $url == $meta['full'] ) ||
321
  ( empty( $meta['full'] ) && empty( $url ) )
322
  )
php/class-frontend.php CHANGED
@@ -79,7 +79,7 @@ class FVP_Frontend extends Featured_Video_Plus {
79
  }
80
 
81
  // Is modal functionality required?
82
- if ( 'overlay' === $options['mode'] ) {
83
  $jsdeps[] = 'jquery.domwindow';
84
  }
85
 
@@ -156,14 +156,14 @@ class FVP_Frontend extends Featured_Video_Plus {
156
  ) {
157
  return $html;
158
 
159
- } elseif ( 'dynamic' === $options['mode'] && ! is_single() ) {
160
  return sprintf(
161
  '<a href="#" data-id="%1$s" class="fvp-dynamic post-thumbnail">%2$s</a>',
162
  $post_id,
163
  $html
164
  );
165
 
166
- } elseif ( 'overlay' === $options['mode'] && ! is_single() ) {
167
  return sprintf(
168
  '<a href="#" data-id="%1$s" class="fvp-overlay post-thumbnail">%2$s</a>' .
169
  '<div id="fvp-cache-%1$s" style="display: none;"></div>',
79
  }
80
 
81
  // Is modal functionality required?
82
+ if ( 'overlay' === $mode ) {
83
  $jsdeps[] = 'jquery.domwindow';
84
  }
85
 
156
  ) {
157
  return $html;
158
 
159
+ } elseif ( 'dynamic' === $mode && ! is_single() ) {
160
  return sprintf(
161
  '<a href="#" data-id="%1$s" class="fvp-dynamic post-thumbnail">%2$s</a>',
162
  $post_id,
163
  $html
164
  );
165
 
166
+ } elseif ( 'overlay' === $mode && ! is_single() ) {
167
  return sprintf(
168
  '<a href="#" data-id="%1$s" class="fvp-overlay post-thumbnail">%2$s</a>' .
169
  '<div id="fvp-cache-%1$s" style="display: none;"></div>',
readme.txt CHANGED
@@ -10,7 +10,7 @@ License: GPLv2 or later
10
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
11
  Requires at least: 3.7
12
  Tested up to: 4.2.2
13
- Stable tag: 2.0.1
14
 
15
  Add Featured Videos to your posts and pages. Works like magic with most themes which use Featured Images. Local Media, YouTube, Vimeo and many more.
16
 
@@ -106,14 +106,14 @@ Yes, please! Check out the public [Featured Video Plus Translation Project](http
106
 
107
  == Upgrade Notice ==
108
 
109
- = 2.0.0 =
110
  Only upgrade when using WordPress 3.7 or higher! Big refactor with support for more video providers.
111
 
112
 
113
 
114
  == Changelog ==
115
 
116
- = 2.0.0: 2015-06-01 =
117
  * __Requires WordPress 3.7 or higher now!__ This reflects versions of WordPress which are "officially" [supported](https://codex.wordpress.org/Supported_Versions). The plugin will from now on try to stick to supporting all versions listed there.
118
  * Major code refactor which results in many bugs scrubbed.
119
  * Support for raw embed codes and [all WordPress core media providers](https://codex.wordpress.org/Embeds#Okay.2C_So_What_Sites_Can_I_Embed_From.3F).
10
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
11
  Requires at least: 3.7
12
  Tested up to: 4.2.2
13
+ Stable tag: 2.0.2
14
 
15
  Add Featured Videos to your posts and pages. Works like magic with most themes which use Featured Images. Local Media, YouTube, Vimeo and many more.
16
 
106
 
107
  == Upgrade Notice ==
108
 
109
+ = 2.0.2 =
110
  Only upgrade when using WordPress 3.7 or higher! Big refactor with support for more video providers.
111
 
112
 
113
 
114
  == Changelog ==
115
 
116
+ = 2.0.0, 2.0.1, 2.0.2: 2015-06-01 =
117
  * __Requires WordPress 3.7 or higher now!__ This reflects versions of WordPress which are "officially" [supported](https://codex.wordpress.org/Supported_Versions). The plugin will from now on try to stick to supporting all versions listed there.
118
  * Major code refactor which results in many bugs scrubbed.
119
  * Support for raw embed codes and [all WordPress core media providers](https://codex.wordpress.org/Embeds#Okay.2C_So_What_Sites_Can_I_Embed_From.3F).