Skip to content

Commit

Permalink
Add compatibility with jQuery 3 and remove some deprecated JS code
Browse files Browse the repository at this point in the history
Frontend and backend JS code generated various warnings or fatal
errors due to the deprecation of some functions in jQuery 3.
The fatal errors made the plugin incompatible with WordPress 5.6.

- Replaced jQuery mobile with Andrés Zsögön's jquery.events.swipe
library for handling swipe events on mobile and mouse drag events on
desktop. jQuery mobile is not compatible with jQuery 3, so it could no
longer be used.
- Replaced some jQuery functions that were still present in jQuery 3 but
considered deprecated.
  • Loading branch information
fabiorino committed Dec 12, 2020
1 parent 4cadceb commit 73c7c5e
Show file tree
Hide file tree
Showing 7 changed files with 50 additions and 29 deletions.
4 changes: 2 additions & 2 deletions crellyslider.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
* Plugin Name: Crelly Slider
* Plugin URI: https://wordpress.org/plugins/crelly-slider/
* Description: A free responsive slider that supports layers. Add texts, images, videos and beautify them with transitions and animations.
* Version: 1.4.3
* Version: 1.4.4
* Author: Fabio Rinaldi
* Author URI: https://github.com/fabiorino
* Text Domain: crelly-slider
Expand All @@ -18,7 +18,7 @@

define('CS_DEBUG', true);

define('CS_VERSION', '1.4.3');
define('CS_VERSION', '1.4.4');
define('CS_MIN_CAPABILITY', 'manage_options');
define('CS_PATH', plugin_dir_path(__FILE__));
define('CS_PLUGIN_URL', plugins_url() . '/crelly-slider');
Expand Down
7 changes: 6 additions & 1 deletion css/crellyslider.css
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* Plugin Name: Crelly Slider
* Plugin URI: https://wordpress.org/plugins/crelly-slider/
* Description: A free responsive slider that supports layers. Add texts, images, videos and beautify them with transitions and animations.
* Version: 1.4.3
* Version: 1.4.4
* Author: Fabio Rinaldi
* Author URI: https://github.com/fabiorino
* License: MIT
Expand All @@ -19,6 +19,11 @@
font-family: 'Verdana', sans-serif;
}

.crellyslider,
.crellyslider * {
touch-action: pan-y; /* Needed for swipe-left and swipe-right on mobile */
}

.crellyslider a {
color: #0073aa;
}
Expand Down
4 changes: 2 additions & 2 deletions css/crellyslider.min.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 73c7c5e

Please sign in to comment.