Smart Slider 3 - Version 3.3.2

Version Description

  • 07. June 2018. =
  • Fix for upgrade error message
Download this release

Release Info

Developer nextendweb
Plugin Icon 128x128 Smart Slider 3
Version 3.3.2
Comparing to
See all releases

Code changes from version 3.3.1 to 3.3.2

includes/smartslider3.php CHANGED
@@ -12,6 +12,10 @@ class SmartSlider3 {
12
 
13
  SmartSlider3::registerApplication();
14
 
 
 
 
 
15
  add_action('widgets_init', 'SmartSlider3::widgets_init', 11);
16
  add_action('widgets_admin_page', 'SmartSlider3::widgets_admin_page');
17
 
@@ -25,8 +29,6 @@ class SmartSlider3 {
25
 
26
  add_action('network_admin_menu', 'SmartSlider3::nextendNetworkAdminInit');
27
 
28
- add_action('upgrader_process_complete', 'SmartSlider3::upgrade', 10, 2);
29
-
30
  add_action('wpmu_new_blog', 'SmartSlider3::install_new_blog');
31
  add_action('delete_blog', 'SmartSlider3::delete_blog', 10, 2);
32
 
@@ -213,10 +215,6 @@ class SmartSlider3 {
213
 
214
  public static function application($dummy, $controller = 'sliders', $action = 'index') {
215
 
216
- if (get_option("n2_ss3_version") != N2SS3::$version) {
217
- self::install(true);
218
- }
219
-
220
  N2Base::getApplication("smartslider")
221
  ->getApplicationType('backend')
222
  ->setCurrent()
@@ -265,16 +263,6 @@ class SmartSlider3 {
265
  return true;
266
  }
267
 
268
- public static function upgrade($upgrader_object, $options) {
269
- if (isset($options['plugins']) && is_array($options['plugins']) && $options['action'] == 'update' && $options['type'] == 'plugin') {
270
- foreach ($options['plugins'] as $plugin) {
271
- if ($plugin == NEXTEND_SMARTSLIDER_3_BASENAME) {
272
- self::install(true);
273
- }
274
- }
275
- }
276
- }
277
-
278
  public static function install_new_blog($blog_id) {
279
  global $wpdb;
280
  N2WP::install_new_blog($blog_id);
12
 
13
  SmartSlider3::registerApplication();
14
 
15
+ if (get_option("n2_ss3_version") != N2SS3::$version) {
16
+ self::install(true);
17
+ }
18
+
19
  add_action('widgets_init', 'SmartSlider3::widgets_init', 11);
20
  add_action('widgets_admin_page', 'SmartSlider3::widgets_admin_page');
21
 
29
 
30
  add_action('network_admin_menu', 'SmartSlider3::nextendNetworkAdminInit');
31
 
 
 
32
  add_action('wpmu_new_blog', 'SmartSlider3::install_new_blog');
33
  add_action('delete_blog', 'SmartSlider3::delete_blog', 10, 2);
34
 
215
 
216
  public static function application($dummy, $controller = 'sliders', $action = 'index') {
217
 
 
 
 
 
218
  N2Base::getApplication("smartslider")
219
  ->getApplicationType('backend')
220
  ->setCurrent()
263
  return true;
264
  }
265
 
 
 
 
 
 
 
 
 
 
 
266
  public static function install_new_blog($blog_id) {
267
  global $wpdb;
268
  N2WP::install_new_blog($blog_id);
library/smartslider/backend/N2SmartsliderApplicationTypeBackend.php CHANGED
@@ -12,8 +12,12 @@ class N2SmartsliderApplicationTypeBackend extends N2ApplicationType {
12
  'libraries.parse.parse'
13
  ));
14
 
15
-
16
- N2Form::import(dirname(__FILE__) . '/elements');
 
 
 
 
17
 
18
  N2Loader::import(array(
19
  'libraries.settings.settings'
12
  'libraries.parse.parse'
13
  ));
14
 
15
+ /**
16
+ * We do not need the method exists check here, but upgrading from 3.2.14 -> 3.3 caused an error in WordPress free
17
+ */
18
+ if(method_exists('N2Form', 'import')) {
19
+ N2Form::import(dirname(__FILE__) . '/elements');
20
+ }
21
 
22
  N2Loader::import(array(
23
  'libraries.settings.settings'
library/smartslider/backend/controllers/Install.php ADDED
@@ -0,0 +1,11 @@
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+
4
+ class N2SmartsliderBackendInstallController extends N2SmartSliderController {
5
+
6
+ public function initialize() {
7
+ }
8
+
9
+ public function actionIndex($secured = false) {
10
+ }
11
+ }
library/smartslider/smartslider3.php CHANGED
@@ -2,7 +2,7 @@
2
 
3
  class N2SS3 {
4
 
5
- public static $version = '3.3.1';
6
 
7
  public static $plan = 'pro';
8
 
2
 
3
  class N2SS3 {
4
 
5
+ public static $version = '3.3.2';
6
 
7
  public static $plan = 'pro';
8
 
nextend/library/applications/system/backend/controllers/Install.php ADDED
@@ -0,0 +1,11 @@
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+
4
+ class N2SystemBackendInstallController extends N2BackendController {
5
+
6
+ public function initialize() {
7
+ }
8
+
9
+ public function actionIndex($secured = false) {
10
+ }
11
+ }
readme.txt CHANGED
@@ -4,7 +4,7 @@ Tags: slider, gallery slider, image slider, layer slider, responsive slider, sli
4
  Donate link: https://sites.fastspring.com/nextend/product/smartslider3donate
5
  Requires at least: 4.6
6
  Tested up to: 4.9
7
- Stable tag: 3.3.1
8
  Requires PHP: 5.4
9
  License: GPLv3 or later
10
  License URI: http://www.gnu.org/licenses/gpl-3.0.html
@@ -193,6 +193,9 @@ Of course! Smart Slider use protocol relative urls which works fine on http:// a
193
 
194
  == Changelog ==
195
 
 
 
 
196
  = 3.3.1 - 05. June 2018. =
197
  * Feature: SEO title is now available in the free version
198
  * Feature: the autoplay control is now hidden when the autoplay is disabled
4
  Donate link: https://sites.fastspring.com/nextend/product/smartslider3donate
5
  Requires at least: 4.6
6
  Tested up to: 4.9
7
+ Stable tag: 3.3.2
8
  Requires PHP: 5.4
9
  License: GPLv3 or later
10
  License URI: http://www.gnu.org/licenses/gpl-3.0.html
193
 
194
  == Changelog ==
195
 
196
+ = 3.3.2 - 07. June 2018. =
197
+ * Fix for upgrade error message
198
+
199
  = 3.3.1 - 05. June 2018. =
200
  * Feature: SEO title is now available in the free version
201
  * Feature: the autoplay control is now hidden when the autoplay is disabled
smart-slider-3.php CHANGED
@@ -3,7 +3,7 @@
3
  Plugin Name: Smart Slider 3
4
  Plugin URI: https://smartslider3.com/
5
  Description: The perfect all-in-one responsive slider solution for WordPress.
6
- Version: 3.3.1
7
  Author: Nextend
8
  Author URI: http://nextendweb.com
9
  License: GPLv3 or later
@@ -40,12 +40,4 @@ if (!class_exists('SmartSlider3', true)) {
40
 
41
  N2Pluggable::addAction('animationFramework', 'N2AssetsPredefined::custom_animation_framework');
42
  }
43
-
44
- function smart_slider_3_install($network_wide) {
45
- smart_slider_3_plugins_loaded();
46
-
47
- SmartSlider3::install($network_wide);
48
- }
49
-
50
- register_activation_hook(__FILE__, 'smart_slider_3_install');
51
  }
3
  Plugin Name: Smart Slider 3
4
  Plugin URI: https://smartslider3.com/
5
  Description: The perfect all-in-one responsive slider solution for WordPress.
6
+ Version: 3.3.2
7
  Author: Nextend
8
  Author URI: http://nextendweb.com
9
  License: GPLv3 or later
40
 
41
  N2Pluggable::addAction('animationFramework', 'N2AssetsPredefined::custom_animation_framework');
42
  }
 
 
 
 
 
 
 
 
43
  }