Make WordPress Core

Ticket #36501: class-wp-image-editor-imagick.php.diff

File class-wp-image-editor-imagick.php.diff, 1.1 KB (added by gblsm, 9 years ago)
Line 
1*** wp-includes/class-wp-image-editor-imagick.php.ORIG  2016-03-15 00:15:26.000000000 +0900
2--- wp-includes/class-wp-image-editor-imagick.php       2016-04-13 13:54:07.000000000 +0900
3***************
4*** 376,383 ****
5                         */
6                        if ( is_callable( array( $this->image, 'getImageAlphaChannel' ) )
7                                && is_callable( array( $this->image, 'setImageAlphaChannel' ) )
8!                               && defined( Imagick::ALPHACHANNEL_UNDEFINED )
9!                               && defined( Imagick::ALPHACHANNEL_OPAQUE )
10                        ) {
11                                if ( $this->image->getImageAlphaChannel() === Imagick::ALPHACHANNEL_UNDEFINED ) {
12                                        $this->image->setImageAlphaChannel( Imagick::ALPHACHANNEL_OPAQUE );
13--- 376,383 ----
14                         */
15                        if ( is_callable( array( $this->image, 'getImageAlphaChannel' ) )
16                                && is_callable( array( $this->image, 'setImageAlphaChannel' ) )
17!                               && defined( 'Imagick::ALPHACHANNEL_UNDEFINED' )
18!                               && defined( 'Imagick::ALPHACHANNEL_OPAQUE' )
19                        ) {
20                                if ( $this->image->getImageAlphaChannel() === Imagick::ALPHACHANNEL_UNDEFINED ) {
21                                        $this->image->setImageAlphaChannel( Imagick::ALPHACHANNEL_OPAQUE );