Slide Anything – Responsive Content / HTML Slider and Carousel - Version 2.2.8

Version Description

  • Bug Fix: Omit DOCTYPE from HTML front-end code generated.

=

Download this release

Release Info

Developer simonpedge
Plugin Icon 128x128 Slide Anything – Responsive Content / HTML Slider and Carousel
Version 2.2.8
Comparing to
See all releases

Code changes from version 2.2.7 to 2.2.8

php/slide-anything-frontend.php CHANGED
@@ -998,7 +998,8 @@ function slide_anything_shortcode($atts) {
998
  function remove_javascript_from_content($slide_content) {
999
  if ($slide_content != '') {
1000
  $dom = new DOMDocument();
1001
- $dom->loadHTML($slide_content);
 
1002
  $script = $dom->getElementsByTagName('script');
1003
  $remove = array();
1004
  foreach($script as $item) {
@@ -1018,7 +1019,8 @@ function set_slide_images_to_lazy_load($slide_content) {
1018
 
1019
  // 2) FOR EACH <IMG> TAG WITHIN THE SLIDE CONTENT, ADD THE 'owl-lazy' CLASS
1020
  $dom = new DOMDocument();
1021
- $dom->loadHTML(mb_convert_encoding($slide_content, 'HTML-ENTITIES', 'UTF-8'));
 
1022
  $imgs = $dom->getElementsByTagName('img');
1023
  foreach ($imgs as $img) {
1024
  $curr_class = $img->getAttribute('class');
998
  function remove_javascript_from_content($slide_content) {
999
  if ($slide_content != '') {
1000
  $dom = new DOMDocument();
1001
+ //$dom->loadHTML($slide_content);
1002
+ $dom->loadHTML($slide_content, LIBXML_HTML_NOIMPLIED | LIBXML_HTML_NODEFDTD);
1003
  $script = $dom->getElementsByTagName('script');
1004
  $remove = array();
1005
  foreach($script as $item) {
1019
 
1020
  // 2) FOR EACH <IMG> TAG WITHIN THE SLIDE CONTENT, ADD THE 'owl-lazy' CLASS
1021
  $dom = new DOMDocument();
1022
+ //$dom->loadHTML(mb_convert_encoding($slide_content, 'HTML-ENTITIES', 'UTF-8'));
1023
+ $dom->loadHTML(mb_convert_encoding($slide_content, 'HTML-ENTITIES', 'UTF-8'), LIBXML_HTML_NOIMPLIED | LIBXML_HTML_NODEFDTD);
1024
  $imgs = $dom->getElementsByTagName('img');
1025
  foreach ($imgs as $img) {
1026
  $curr_class = $img->getAttribute('class');
readme.txt CHANGED
@@ -286,6 +286,9 @@ Adding a SLIDE ANYTHING slider using the WordPress 5.0 'Block Editor' is pretty
286
  = 2.2.7 =
287
  * Added Showcase Carousel support, which is a new Slide Anything PRO feature.
288
 
 
 
 
289
  == Upgrade Notice ==
290
 
291
  = 1.0 =
@@ -475,3 +478,6 @@ Adding a SLIDE ANYTHING slider using the WordPress 5.0 'Block Editor' is pretty
475
 
476
  = 2.2.7 =
477
  * Added Showcase Carousel support, which is a new Slide Anything PRO feature.
 
 
 
286
  = 2.2.7 =
287
  * Added Showcase Carousel support, which is a new Slide Anything PRO feature.
288
 
289
+ = 2.2.8 =
290
+ * Bug Fix: Omit DOCTYPE from HTML front-end code generated.
291
+
292
  == Upgrade Notice ==
293
 
294
  = 1.0 =
478
 
479
  = 2.2.7 =
480
  * Added Showcase Carousel support, which is a new Slide Anything PRO feature.
481
+
482
+ = 2.2.8 =
483
+ * Bug Fix: Omit DOCTYPE from HTML front-end code generated.
slide-anything.php CHANGED
@@ -4,7 +4,7 @@
4
  * Plugin URI: https://wordpress.org/plugins/slide-anything/
5
  * Description: Slide Anything allows you to create a carousel/slider where the content for each slide can be anything you want - images, text, HTML, and even shortcodes. This plugin uses the Owl Carousel jQuery plugin, and lets you create beautiful, touch enabled, responsive carousels and sliders.
6
  * Author: Simon Edge
7
- * Version: 2.2.7
8
  * License: GPLv2 or later
9
  */
10
 
4
  * Plugin URI: https://wordpress.org/plugins/slide-anything/
5
  * Description: Slide Anything allows you to create a carousel/slider where the content for each slide can be anything you want - images, text, HTML, and even shortcodes. This plugin uses the Owl Carousel jQuery plugin, and lets you create beautiful, touch enabled, responsive carousels and sliders.
6
  * Author: Simon Edge
7
+ * Version: 2.2.8
8
  * License: GPLv2 or later
9
  */
10