WordPress 4.1.1-scripts
[autoinstalls/wordpress.git] / wp-includes / class-wp-image-editor-imagick.php
index 8bd6e38861c2ceba374bef8417462fc8ddc83e4c..843b85c541076983ca21f65c938c60929acbb5bc 100644 (file)
  * @uses WP_Image_Editor Extends class
  */
 class WP_Image_Editor_Imagick extends WP_Image_Editor {
-
-       protected $image = null; // Imagick Object
+       /**
+        * @var Imagick
+        */
+       protected $image; // Imagick Object
 
        public function __destruct() {
                if ( $this->image instanceof Imagick ) {
@@ -140,10 +142,11 @@ class WP_Image_Editor_Imagick extends WP_Image_Editor {
                }
 
                $updated_size = $this->update_size();
-               if ( is_wp_error( $updated_size ) )
-                               return $updated_size;
+               if ( is_wp_error( $updated_size ) ) {
+                       return $updated_size;
+               }
 
-               return true;
+               return $this->set_quality();
        }
 
        /**