Version Description
- Fixed issues with legacy upgrades. Methods should now be prioritized correctly and flagged on completion appropriately.
Download this release
Release Info
Developer | MatthewRuddy |
Plugin | Easing Slider |
Version | 2.2.0.2 |
Comparing to | |
See all releases |
Code changes from version 2.2.0.1 to 2.2.0.2
- easing-slider.php +10 -10
- includes/class-es-customizer-legacy.php +11 -3
- includes/class-es-legacy.php +13 -2
- readme.txt +4 -1
easing-slider.php
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
/*
|
4 |
Plugin Name: Easing Slider
|
5 |
Plugin URI: http://easingslider.com/
|
6 |
-
Version: 2.2.0.
|
7 |
Author: Matthew Ruddy
|
8 |
Author URI: http://matthewruddy.com/
|
9 |
Description: Easing Slider is an easy to use slider plugin for WordPress. Simple, lightweight & designed to get the job done, it allows you to get creating sliders without any difficulty.
|
@@ -53,7 +53,7 @@ class Easing_Slider {
|
|
53 |
*
|
54 |
* @var string
|
55 |
*/
|
56 |
-
public static $version = '2.2.0.
|
57 |
|
58 |
/**
|
59 |
* Constructor
|
@@ -282,10 +282,10 @@ class Easing_Slider {
|
|
282 |
add_action( 'delete_attachment', array( $image_resizer, 'delete_resized_attachments' ) );
|
283 |
add_filter( 'easingslider_modify_image_url', array( $image_resizer, 'resized_image_url' ), 10, 3 );
|
284 |
|
285 |
-
add_action( 'init', array( $legacy, '
|
286 |
-
add_action( 'init', array( $legacy, '
|
287 |
-
add_action( 'init', array( $legacy, '
|
288 |
-
add_action( 'init', array( $legacy, '
|
289 |
add_action( 'easingslider_remove_data', array( $legacy, 'remove_options' ) );
|
290 |
add_action( 'easingslider_delete_slider', array( $legacy, 'delete_lite_slider' ) );
|
291 |
add_action( 'easingslider_delete_slider', array( $legacy, 'delete_pro_slider' ) );
|
@@ -358,11 +358,11 @@ class Easing_Slider {
|
|
358 |
* Define hooks
|
359 |
*/
|
360 |
add_filter( 'easingslider_metadata_defaults', array( $customizations, 'merge_defaults' ) );
|
361 |
-
add_filter( 'easingslider_after_display_slider', array( $customizations, 'drop_shadow' ),
|
362 |
-
add_filter( 'easingslider_before_display_slider', array( $customizations, 'display_styling' ),
|
363 |
|
364 |
-
add_action( 'init', array( $customizer_legacy, '
|
365 |
-
add_action( 'init', array( $customizer_legacy, '
|
366 |
add_action( 'init', array( $customizer_legacy, 'pro_upgrade_from_200' ) );
|
367 |
add_action( 'easingslider_remove_data', array( $customizer_legacy, 'remove_options' ) );
|
368 |
|
3 |
/*
|
4 |
Plugin Name: Easing Slider
|
5 |
Plugin URI: http://easingslider.com/
|
6 |
+
Version: 2.2.0.2
|
7 |
Author: Matthew Ruddy
|
8 |
Author URI: http://matthewruddy.com/
|
9 |
Description: Easing Slider is an easy to use slider plugin for WordPress. Simple, lightweight & designed to get the job done, it allows you to get creating sliders without any difficulty.
|
53 |
*
|
54 |
* @var string
|
55 |
*/
|
56 |
+
public static $version = '2.2.0.2';
|
57 |
|
58 |
/**
|
59 |
* Constructor
|
282 |
add_action( 'delete_attachment', array( $image_resizer, 'delete_resized_attachments' ) );
|
283 |
add_filter( 'easingslider_modify_image_url', array( $image_resizer, 'resized_image_url' ), 10, 3 );
|
284 |
|
285 |
+
add_action( 'init', array( $legacy, 'lite_upgrade_from_200' ), 1 );
|
286 |
+
add_action( 'init', array( $legacy, 'lite_upgrade_from_100' ), 2 );
|
287 |
+
add_action( 'init', array( $legacy, 'pro_upgrade_from_200' ), 1 );
|
288 |
+
add_action( 'init', array( $legacy, 'pro_upgrade_from_100' ), 2 );
|
289 |
add_action( 'easingslider_remove_data', array( $legacy, 'remove_options' ) );
|
290 |
add_action( 'easingslider_delete_slider', array( $legacy, 'delete_lite_slider' ) );
|
291 |
add_action( 'easingslider_delete_slider', array( $legacy, 'delete_pro_slider' ) );
|
358 |
* Define hooks
|
359 |
*/
|
360 |
add_filter( 'easingslider_metadata_defaults', array( $customizations, 'merge_defaults' ) );
|
361 |
+
add_filter( 'easingslider_after_display_slider', array( $customizations, 'drop_shadow' ), 10, 2 );
|
362 |
+
add_filter( 'easingslider_before_display_slider', array( $customizations, 'display_styling' ), 10, 2 );
|
363 |
|
364 |
+
add_action( 'init', array( $customizer_legacy, 'lite_upgrade_from_200' ), 1 );
|
365 |
+
add_action( 'init', array( $customizer_legacy, 'lite_upgrade_from_100' ), 2 );
|
366 |
add_action( 'init', array( $customizer_legacy, 'pro_upgrade_from_200' ) );
|
367 |
add_action( 'easingslider_remove_data', array( $customizer_legacy, 'remove_options' ) );
|
368 |
|
includes/class-es-customizer-legacy.php
CHANGED
@@ -110,7 +110,7 @@ class ES_Customizer_Legacy {
|
|
110 |
}
|
111 |
}
|
112 |
|
113 |
-
// Flag that this
|
114 |
update_option( 'easingslider-customizer_upgraded_from_pro', true );
|
115 |
|
116 |
}
|
@@ -144,11 +144,16 @@ class ES_Customizer_Legacy {
|
|
144 |
*/
|
145 |
public function lite_upgrade_from_100() {
|
146 |
|
|
|
|
|
|
|
|
|
|
|
147 |
/**
|
148 |
* This version of the plugin had no "version" option, so we have to improvise.
|
149 |
*
|
150 |
* To do this, we will cycle through the options used to store the images from #1 to #10.
|
151 |
-
* If we find an image, we will assume the plugin settings exist and will continue with the
|
152 |
*/
|
153 |
$legacy_images = array( 'sImg1', 'sImg2', 'sImg3', 'sImg4', 'sImg5', 'sImg6', 'sImg7', 'sImg8', 'sImg9', 'sImg10' );
|
154 |
|
@@ -166,6 +171,9 @@ class ES_Customizer_Legacy {
|
|
166 |
|
167 |
// Save the slider
|
168 |
$slider->save();
|
|
|
|
|
|
|
169 |
|
170 |
// We've done our update. Time to bail!
|
171 |
return;
|
@@ -233,7 +241,7 @@ class ES_Customizer_Legacy {
|
|
233 |
// Save the slider
|
234 |
$slider->save();
|
235 |
|
236 |
-
// Flag that this
|
237 |
update_option( 'easingslider-customizer_upgraded_from_lite', true );
|
238 |
|
239 |
}
|
110 |
}
|
111 |
}
|
112 |
|
113 |
+
// Flag that this upgrade has been done
|
114 |
update_option( 'easingslider-customizer_upgraded_from_pro', true );
|
115 |
|
116 |
}
|
144 |
*/
|
145 |
public function lite_upgrade_from_100() {
|
146 |
|
147 |
+
// Bail if this has already been carried out
|
148 |
+
if ( get_option( 'easingslider-customizer_upgraded_from_lite' ) ) {
|
149 |
+
return;
|
150 |
+
}
|
151 |
+
|
152 |
/**
|
153 |
* This version of the plugin had no "version" option, so we have to improvise.
|
154 |
*
|
155 |
* To do this, we will cycle through the options used to store the images from #1 to #10.
|
156 |
+
* If we find an image, we will assume the plugin settings exist and will continue with the upgrade.
|
157 |
*/
|
158 |
$legacy_images = array( 'sImg1', 'sImg2', 'sImg3', 'sImg4', 'sImg5', 'sImg6', 'sImg7', 'sImg8', 'sImg9', 'sImg10' );
|
159 |
|
171 |
|
172 |
// Save the slider
|
173 |
$slider->save();
|
174 |
+
|
175 |
+
// Flag that this upgrade has been done
|
176 |
+
update_option( 'easingslider-customizer_upgraded_from_lite', true );
|
177 |
|
178 |
// We've done our update. Time to bail!
|
179 |
return;
|
241 |
// Save the slider
|
242 |
$slider->save();
|
243 |
|
244 |
+
// Flag that this upgrade has been done
|
245 |
update_option( 'easingslider-customizer_upgraded_from_lite', true );
|
246 |
|
247 |
}
|
includes/class-es-legacy.php
CHANGED
@@ -439,6 +439,11 @@ class ES_Legacy {
|
|
439 |
*/
|
440 |
public function lite_upgrade_from_100() {
|
441 |
|
|
|
|
|
|
|
|
|
|
|
442 |
/**
|
443 |
* This version of the plugin had no "version" option, so we have to improvise.
|
444 |
*
|
@@ -469,8 +474,11 @@ class ES_Legacy {
|
|
469 |
// Add the slides. We used to have a maximum of ten, hence the "for" loop.
|
470 |
for ( $i = 1; $i <= 10; $i++ ) {
|
471 |
|
472 |
-
// Get the image
|
473 |
-
|
|
|
|
|
|
|
474 |
continue;
|
475 |
}
|
476 |
|
@@ -491,6 +499,9 @@ class ES_Legacy {
|
|
491 |
|
492 |
// Save the slider
|
493 |
$slider->save();
|
|
|
|
|
|
|
494 |
|
495 |
// We've done our update. Time to bail!
|
496 |
return;
|
439 |
*/
|
440 |
public function lite_upgrade_from_100() {
|
441 |
|
442 |
+
// Bail if this has already been carried out
|
443 |
+
if ( get_option( 'easingslider_upgraded_from_lite' ) ) {
|
444 |
+
return;
|
445 |
+
}
|
446 |
+
|
447 |
/**
|
448 |
* This version of the plugin had no "version" option, so we have to improvise.
|
449 |
*
|
474 |
// Add the slides. We used to have a maximum of ten, hence the "for" loop.
|
475 |
for ( $i = 1; $i <= 10; $i++ ) {
|
476 |
|
477 |
+
// Get the image
|
478 |
+
$image = get_option( "sImg{$i}" );
|
479 |
+
|
480 |
+
// Bail if the image doesn't exist
|
481 |
+
if ( empty( $image ) ) {
|
482 |
continue;
|
483 |
}
|
484 |
|
499 |
|
500 |
// Save the slider
|
501 |
$slider->save();
|
502 |
+
|
503 |
+
// Flag that this update has been done
|
504 |
+
update_option( 'easingslider_upgraded_from_lite', true );
|
505 |
|
506 |
// We've done our update. Time to bail!
|
507 |
return;
|
readme.txt
CHANGED
@@ -4,7 +4,7 @@ Contributors: MatthewRuddy
|
|
4 |
Tags: slideshow, slider, slides, slide, gallery, images, image, responsive, mobile, jquery, javascript, featured, content
|
5 |
Requires at least: 4.0
|
6 |
Tested up to: 4.2
|
7 |
-
Stable tag: 2.2.0.
|
8 |
|
9 |
Easing Slider is an easy to use slider plugin. Simple and lightweight, is makes creating beautiful WordPress sliders a breeze.
|
10 |
|
@@ -73,6 +73,9 @@ This is easy. When editing a slider in the "All Sliders" admin area, simply clic
|
|
73 |
|
74 |
== Changelog ==
|
75 |
|
|
|
|
|
|
|
76 |
= 2.2.0.1 =
|
77 |
* Fixed static bindings bug for users using less than PHP 5.3.
|
78 |
|
4 |
Tags: slideshow, slider, slides, slide, gallery, images, image, responsive, mobile, jquery, javascript, featured, content
|
5 |
Requires at least: 4.0
|
6 |
Tested up to: 4.2
|
7 |
+
Stable tag: 2.2.0.2
|
8 |
|
9 |
Easing Slider is an easy to use slider plugin. Simple and lightweight, is makes creating beautiful WordPress sliders a breeze.
|
10 |
|
73 |
|
74 |
== Changelog ==
|
75 |
|
76 |
+
= 2.2.0.2 =
|
77 |
+
* Fixed issues with legacy upgrades. Methods should now be prioritized correctly and flagged on completion appropriately.
|
78 |
+
|
79 |
= 2.2.0.1 =
|
80 |
* Fixed static bindings bug for users using less than PHP 5.3.
|
81 |
|