Slider by WD – Responsive Slider - Version 1.2.34

Version Description

  • Fixed: Do not load image on changing between images.
Download this release

Release Info

Developer 10web
Plugin Icon 128x128 Slider by WD – Responsive Slider
Version 1.2.34
Comparing to
See all releases

Code changes from version 1.2.33 to 1.2.34

Files changed (3) hide show
  1. js/wds_frontend.js +6 -3
  2. readme.txt +5 -2
  3. slider-wd.php +3 -3
js/wds_frontend.js CHANGED
@@ -71,6 +71,7 @@ function wds_slider_ready() {
71
  jQuery(this).remove();
72
  wds_ready_func(wds);
73
  });
 
74
  }
75
  else {
76
  wds_ready_func(wds);
@@ -523,7 +524,7 @@ function wds_change_image(wds, current_key, key, wds_data, from_effect, btn) {
523
  if (typeof btn == "undefined") {
524
  var btn = "";
525
  }
526
- if (!(wds_params[wds].carousel != 0 || wds_data[key]["is_video"] != 'image')) {
527
  jQuery('<img />').attr("src", wds_data[key]["image_url"])
528
  .on('load', function () {
529
  jQuery(this).remove();
@@ -533,6 +534,7 @@ function wds_change_image(wds, current_key, key, wds_data, from_effect, btn) {
533
  jQuery(this).remove();
534
  wds_change_image_when_loaded(wds, current_key, key, wds_data, from_effect, btn);
535
  });
 
536
  }
537
  else {
538
  wds_change_image_when_loaded(wds, current_key, key, wds_data, from_effect, btn);
@@ -2510,7 +2512,7 @@ function wds_ready_func( wds ) {
2510
 
2511
  if (wds_params[wds].preload_images) {
2512
  function wds_preload(wds, preload_key) {
2513
- if (wds_params[wds].wds_data[preload_key]["is_video"] == 'image') {
2514
  jQuery('<img />')
2515
  .on('load', function() {
2516
  jQuery(this).remove();
@@ -2521,8 +2523,9 @@ function wds_ready_func( wds ) {
2521
  if (preload_key < wds_params[wds].wds_data.length - 1) wds_preload(wds, preload_key + 1);
2522
  })
2523
  .attr("src", wds_params[wds].wds_data[preload_key]["image_url"]);
 
2524
  }
2525
- else {
2526
  if (preload_key < wds_params[wds].wds_data.length - 1) wds_preload(wds, preload_key + 1);
2527
  }
2528
  }
71
  jQuery(this).remove();
72
  wds_ready_func(wds);
73
  });
74
+ wds_data[wds_params[wds].wds_current_key]["loaded"] = true;
75
  }
76
  else {
77
  wds_ready_func(wds);
524
  if (typeof btn == "undefined") {
525
  var btn = "";
526
  }
527
+ if (!(wds_params[wds].carousel != 0 || wds_data[key]["is_video"] != 'image') && !wds_data[key]["loaded"]) {
528
  jQuery('<img />').attr("src", wds_data[key]["image_url"])
529
  .on('load', function () {
530
  jQuery(this).remove();
534
  jQuery(this).remove();
535
  wds_change_image_when_loaded(wds, current_key, key, wds_data, from_effect, btn);
536
  });
537
+ wds_data[key]["loaded"] = true;
538
  }
539
  else {
540
  wds_change_image_when_loaded(wds, current_key, key, wds_data, from_effect, btn);
2512
 
2513
  if (wds_params[wds].preload_images) {
2514
  function wds_preload(wds, preload_key) {
2515
+ if (wds_params[wds].wds_data[preload_key]["is_video"] == 'image' && !wds_params[wds].wds_data[preload_key]["loaded"]) {
2516
  jQuery('<img />')
2517
  .on('load', function() {
2518
  jQuery(this).remove();
2523
  if (preload_key < wds_params[wds].wds_data.length - 1) wds_preload(wds, preload_key + 1);
2524
  })
2525
  .attr("src", wds_params[wds].wds_data[preload_key]["image_url"]);
2526
+ wds_params[wds].wds_data[preload_key]["loaded"] = true;
2527
  }
2528
+ else {
2529
  if (preload_key < wds_params[wds].wds_data.length - 1) wds_preload(wds, preload_key + 1);
2530
  }
2531
  }
readme.txt CHANGED
@@ -2,9 +2,9 @@
2
  Contributors: webdorado,10web
3
  Tags: responsive slider, slider, slideshow, wordpress slider, image slider, gallery slider, images slider, Photo Slider, post slider, slider plugin
4
  Requires at least: 3.4
5
- Tested up to: 5.4
6
  Requires PHP: 5.2
7
- Stable tag: 1.2.33
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -445,6 +445,9 @@ The plugin takes the full width of the widget area if the **Boxed Layout** in **
445
 
446
  == Changelog ==
447
 
 
 
 
448
  = 1.2.33 =
449
  * Fixed: Bug with Wordpress 5.4
450
  * Fixed: Automatically mute all videos with enabled autoplay.
2
  Contributors: webdorado,10web
3
  Tags: responsive slider, slider, slideshow, wordpress slider, image slider, gallery slider, images slider, Photo Slider, post slider, slider plugin
4
  Requires at least: 3.4
5
+ Tested up to: 5.5
6
  Requires PHP: 5.2
7
+ Stable tag: 1.2.34
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
445
 
446
  == Changelog ==
447
 
448
+ = 1.2.34 =
449
+ * Fixed: Do not load image on changing between images.
450
+
451
  = 1.2.33 =
452
  * Fixed: Bug with Wordpress 5.4
453
  * Fixed: Automatically mute all videos with enabled autoplay.
slider-wd.php CHANGED
@@ -3,7 +3,7 @@
3
  * Plugin Name: Slider by 10Web
4
  * Plugin URI: https://10web.io/plugins/wordpress-slider/?utm_source=slider&utm_medium=free_plugin
5
  * Description: This is a responsive plugin, which allows adding sliders to your posts/pages and to custom location. It uses large number of transition effects and supports various types of layers.
6
- * Version: 1.2.33
7
  * Author: 10Web
8
  * Author URI: https://10web.io/pricing/?utm_source=slider&utm_medium=free_plugin
9
  * License: GNU/GPLv3 http://www.gnu.org/licenses/gpl-3.0.html
@@ -79,8 +79,8 @@ final class WDS {
79
  $this->plugin_dir = WP_PLUGIN_DIR . "/" . plugin_basename(dirname(__FILE__));
80
  $this->plugin_url = plugins_url(plugin_basename(dirname(__FILE__)));
81
  $this->main_file = plugin_basename(__FILE__);
82
- $this->plugin_version = '1.2.33';
83
- $this->db_version = '1.2.33';
84
  $this->prefix = 'wds';
85
  $this->nicename = __('Slider', $this->prefix);
86
  $this->use_home_url();
3
  * Plugin Name: Slider by 10Web
4
  * Plugin URI: https://10web.io/plugins/wordpress-slider/?utm_source=slider&utm_medium=free_plugin
5
  * Description: This is a responsive plugin, which allows adding sliders to your posts/pages and to custom location. It uses large number of transition effects and supports various types of layers.
6
+ * Version: 1.2.34
7
  * Author: 10Web
8
  * Author URI: https://10web.io/pricing/?utm_source=slider&utm_medium=free_plugin
9
  * License: GNU/GPLv3 http://www.gnu.org/licenses/gpl-3.0.html
79
  $this->plugin_dir = WP_PLUGIN_DIR . "/" . plugin_basename(dirname(__FILE__));
80
  $this->plugin_url = plugins_url(plugin_basename(dirname(__FILE__)));
81
  $this->main_file = plugin_basename(__FILE__);
82
+ $this->plugin_version = '1.2.34';
83
+ $this->db_version = '1.2.34';
84
  $this->prefix = 'wds';
85
  $this->nicename = __('Slider', $this->prefix);
86
  $this->use_home_url();