MetaSlider - Version 3.4.2

Version Description

[17/01/17] =

  • Workaround/Fix: Don't use WP_Image_Editor to load slide images that are missing metadata (invalid images)
Download this release

Release Info

Developer matchalabs
Plugin Icon 128x128 MetaSlider
Version 3.4.2
Comparing to
See all releases

Code changes from version 3.4.1 to 3.4.2

inc/metaslider.imagehelper.class.php CHANGED
@@ -41,6 +41,14 @@ class MetaSliderImageHelper {
41
$this->container_height = $height;
42
$this->use_image_editor = $use_image_editor;
43
$this->set_crop_type($crop_type);
44
}
45
46
41
$this->container_height = $height;
42
$this->use_image_editor = $use_image_editor;
43
$this->set_crop_type($crop_type);
44
+
45
+ $meta = wp_get_attachment_metadata( $this->id );
46
+
47
+ $is_valid = isset( $meta['width'], $meta['height'] );
48
+
49
+ if ( ! $is_valid ) {
50
+ $this->use_image_editor = false;
51
+ }
52
}
53
54
ml-slider.php CHANGED
@@ -5,7 +5,7 @@
5
* Plugin Name: Meta Slider
6
* Plugin URI: https://www.metaslider.com
7
* Description: Easy to use slideshow plugin. Create SEO optimised responsive slideshows with Nivo Slider, Flex Slider, Coin Slider and Responsive Slides.
8
- * Version: 3.4.1
9
* Author: Matcha Labs
10
* Author URI: https://www.metaslider.com
11
* License: GPL-2.0+
@@ -31,7 +31,7 @@ class MetaSliderPlugin {
31
/**
32
* @var string
33
*/
34
- public $version = '3.4.1';
35
36
37
/**
5
* Plugin Name: Meta Slider
6
* Plugin URI: https://www.metaslider.com
7
* Description: Easy to use slideshow plugin. Create SEO optimised responsive slideshows with Nivo Slider, Flex Slider, Coin Slider and Responsive Slides.
8
+ * Version: 3.4.2
9
* Author: Matcha Labs
10
* Author URI: https://www.metaslider.com
11
* License: GPL-2.0+
31
/**
32
* @var string
33
*/
34
+ public $version = '3.4.2';
35
36
37
/**
readme.txt CHANGED
@@ -4,7 +4,7 @@ Tags: wordpress slideshow,seo,slideshow,slider,widget,wordpress slider,image sli
4
Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=CQ84KC4X8YKW8
5
Requires at least: 3.5
6
Tested up to: 4.7
7
- Stable tag: 3.4
8
License: GPLv2 or later
9
License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
@@ -128,7 +128,11 @@ See https://www.metaslider.com/documentation/image-cropping/
128
129
== Changelog ==
130
131
- = 3.4.1 [16/01/17] =
132
133
* Workaround/Fix: Don't use WP_Image_Editor to load admin slide thumbnails, use wp_get_attachment_image_src instead. Attempts to fix white screen issues affecting some users. Related: https://core.trac.wordpress.org/ticket/36534
134
4
Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=CQ84KC4X8YKW8
5
Requires at least: 3.5
6
Tested up to: 4.7
7
+ Stable tag: 3.4.1
8
License: GPLv2 or later
9
License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
128
129
== Changelog ==
130
131
+ = 3.4.2 [17/01/17] =
132
+
133
+ * Workaround/Fix: Don't use WP_Image_Editor to load slide images that are missing metadata (invalid images)
134
+
135
+ = 3.4.2 [16/01/17] =
136
137
* Workaround/Fix: Don't use WP_Image_Editor to load admin slide thumbnails, use wp_get_attachment_image_src instead. Attempts to fix white screen issues affecting some users. Related: https://core.trac.wordpress.org/ticket/36534
138