WordPress 4.5.1
[autoinstalls/wordpress.git] / wp-includes / class-wp-image-editor-imagick.php
index 7632cbb4bab9bdf711704e38881cd18eb29f5d85..74ba793be7a66f88cb2d78dca7bf8854521407fb 100644 (file)
@@ -376,8 +376,8 @@ class WP_Image_Editor_Imagick extends WP_Image_Editor {
                         */
                        if ( is_callable( array( $this->image, 'getImageAlphaChannel' ) )
                                && is_callable( array( $this->image, 'setImageAlphaChannel' ) )
-                               && defined( Imagick::ALPHACHANNEL_UNDEFINED )
-                               && defined( Imagick::ALPHACHANNEL_OPAQUE )
+                               && defined( 'Imagick::ALPHACHANNEL_UNDEFINED' )
+                               && defined( 'Imagick::ALPHACHANNEL_OPAQUE' )
                        ) {
                                if ( $this->image->getImageAlphaChannel() === Imagick::ALPHACHANNEL_UNDEFINED ) {
                                        $this->image->setImageAlphaChannel( Imagick::ALPHACHANNEL_OPAQUE );