Version Description
- fixed a bug in the plugin where default options were not set for automatic upgrade
Download this release
Release Info
Developer | wptipsntricks |
Plugin | WP Video Lightbox |
Version | 1.6.5 |
Comparing to | |
See all releases |
Code changes from version 1.6.4 to 1.6.5
- readme.txt +4 -1
- wp-video-lightbox.php +13 -3
readme.txt
CHANGED
@@ -4,7 +4,7 @@ Donate link: http://www.tipsandtricks-hq.com/
|
|
4 |
Tags: wordpress lightbox, wordpress video lightbox, video lightbox, wp video lightbox, wordpress video embed, add video to wordpress, gallery, image, images, lightbox, lightview, overlay, photo, photos, picture, video
|
5 |
Requires at least: 3.0
|
6 |
Tested up to: 3.8
|
7 |
-
Stable tag: 1.6.
|
8 |
License: GPLv2 or later
|
9 |
|
10 |
Very easy to use WordPress lightbox plugin to display YouTube and Vimeo videos in an elegant lightbox overlay.
|
@@ -96,6 +96,9 @@ None
|
|
96 |
|
97 |
== Changelog ==
|
98 |
|
|
|
|
|
|
|
99 |
= 1.6.4 =
|
100 |
* plugin is now compatible with WordPress 3.8.
|
101 |
|
4 |
Tags: wordpress lightbox, wordpress video lightbox, video lightbox, wp video lightbox, wordpress video embed, add video to wordpress, gallery, image, images, lightbox, lightview, overlay, photo, photos, picture, video
|
5 |
Requires at least: 3.0
|
6 |
Tested up to: 3.8
|
7 |
+
Stable tag: 1.6.5
|
8 |
License: GPLv2 or later
|
9 |
|
10 |
Very easy to use WordPress lightbox plugin to display YouTube and Vimeo videos in an elegant lightbox overlay.
|
96 |
|
97 |
== Changelog ==
|
98 |
|
99 |
+
= 1.6.5 =
|
100 |
+
* fixed a bug in the plugin where default options were not set for automatic upgrade
|
101 |
+
|
102 |
= 1.6.4 =
|
103 |
* plugin is now compatible with WordPress 3.8.
|
104 |
|
wp-video-lightbox.php
CHANGED
@@ -1,7 +1,7 @@
|
|
1 |
<?php
|
2 |
/*
|
3 |
Plugin Name: WP Video Lightbox
|
4 |
-
Version: 1.6.
|
5 |
Plugin URI: http://www.tipsandtricks-hq.com/?p=2700
|
6 |
Author: Tips and Tricks HQ, Ruhul Amin
|
7 |
Author URI: http://www.tipsandtricks-hq.com/
|
@@ -13,7 +13,7 @@ if (!class_exists('WP_Video_Lightbox'))
|
|
13 |
{
|
14 |
class WP_Video_Lightbox
|
15 |
{
|
16 |
-
var $version = '1.6.
|
17 |
var $db_version = '1.0';
|
18 |
var $plugin_url;
|
19 |
var $plugin_path;
|
@@ -59,6 +59,7 @@ if (!class_exists('WP_Video_Lightbox'))
|
|
59 |
|
60 |
function activate_handler(){//Will run when the plugin activates only
|
61 |
//initialize settings
|
|
|
62 |
add_option('wpvl_enable_jquery', '1');
|
63 |
add_option('wpvl_enable_prettyPhoto', '1');
|
64 |
$wpvl_prettyPhoto = WP_Video_Lightbox_prettyPhoto::get_instance();
|
@@ -66,7 +67,16 @@ if (!class_exists('WP_Video_Lightbox'))
|
|
66 |
}
|
67 |
|
68 |
function do_db_upgrade_check(){
|
69 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
70 |
}
|
71 |
|
72 |
function plugin_init(){
|
1 |
<?php
|
2 |
/*
|
3 |
Plugin Name: WP Video Lightbox
|
4 |
+
Version: 1.6.5
|
5 |
Plugin URI: http://www.tipsandtricks-hq.com/?p=2700
|
6 |
Author: Tips and Tricks HQ, Ruhul Amin
|
7 |
Author URI: http://www.tipsandtricks-hq.com/
|
13 |
{
|
14 |
class WP_Video_Lightbox
|
15 |
{
|
16 |
+
var $version = '1.6.5';
|
17 |
var $db_version = '1.0';
|
18 |
var $plugin_url;
|
19 |
var $plugin_path;
|
59 |
|
60 |
function activate_handler(){//Will run when the plugin activates only
|
61 |
//initialize settings
|
62 |
+
add_option('wpvl_plugin_version', $this->version);
|
63 |
add_option('wpvl_enable_jquery', '1');
|
64 |
add_option('wpvl_enable_prettyPhoto', '1');
|
65 |
$wpvl_prettyPhoto = WP_Video_Lightbox_prettyPhoto::get_instance();
|
67 |
}
|
68 |
|
69 |
function do_db_upgrade_check(){
|
70 |
+
//NOP
|
71 |
+
if(is_admin())
|
72 |
+
{
|
73 |
+
$wpvl_version = get_option('wpvl_plugin_version');
|
74 |
+
if(!isset($wpvl_version) || $wpvl_version != $this->version)
|
75 |
+
{
|
76 |
+
$this->activate_handler();
|
77 |
+
update_option('wpvl_plugin_version', $this->version);
|
78 |
+
}
|
79 |
+
}
|
80 |
}
|
81 |
|
82 |
function plugin_init(){
|