MetaSlider - Version 3.4.1

Version Description

[16/01/17] =

  • 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
Download this release

Release Info

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

Code changes from version 3.4 to 3.4.1

inc/slide/metaslide.class.php CHANGED
@@ -455,8 +455,12 @@ class MetaSlide {
455
  */
456
  public function get_thumb() {
457
 
458
- $imageHelper = new MetaSliderImageHelper( $this->slide->ID, 150, 150, 'false' );
459
- return $imageHelper->get_image_url();
460
 
 
 
 
 
 
461
  }
462
  }
455
  */
456
  public function get_thumb() {
457
 
458
+ $image = wp_get_attachment_image_src($this->slide->ID, 'thumbnail');
 
459
 
460
+ if (isset($image[0])) {
461
+ return $image[0];
462
+ }
463
+
464
+ return "";
465
  }
466
  }
inc/slide/metaslide.image.class.php CHANGED
@@ -117,8 +117,7 @@ class MetaImageSlide extends MetaSlide {
117
  protected function get_admin_slide() {
118
 
119
  // get some slide settings
120
- $imageHelper = new MetaSliderImageHelper( $this->slide->ID, 150, 150, 'false', $this->use_wp_image_editor() );
121
- $thumb = $imageHelper->get_image_url();
122
  $slide_label = apply_filters( "metaslider_image_slide_label", __( "Image Slide", "ml-slider" ), $this->slide, $this->settings );
123
 
124
  // slide row HTML
117
  protected function get_admin_slide() {
118
 
119
  // get some slide settings
120
+ $thumb = $this->get_thumb();
 
121
  $slide_label = apply_filters( "metaslider_image_slide_label", __( "Image Slide", "ml-slider" ), $this->slide, $this->settings );
122
 
123
  // slide row HTML
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
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';
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.1
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.1';
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.3.7
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -128,6 +128,10 @@ See https://www.metaslider.com/documentation/image-cropping/
128
 
129
  == Changelog ==
130
 
 
 
 
 
131
  = 3.4 [04/01/17] =
132
 
133
  This is the first in a series of small updates which will eventually allow us to remove restrictions in the plugin which prevent us from implementing certain functionality, including:
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
 
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
+
135
  = 3.4 [04/01/17] =
136
 
137
  This is the first in a series of small updates which will eventually allow us to remove restrictions in the plugin which prevent us from implementing certain functionality, including: