WordPress.org

Make WordPress Core

Ticket #22543: 22543-3.diff

File 22543-3.diff, 627 bytes (added by markoheijnen, 2 years ago)

Check on version

  • wp-includes/class-wp-image-editor-imagick.php

     
    3838         * @return boolean 
    3939         */ 
    4040        public static function test( $args = array() ) { 
    41                 if ( ! extension_loaded( 'imagick' ) || ! is_callable( 'Imagick', 'queryFormats' ) ) 
     41                if ( ! extension_loaded( 'imagick' ) || version_compare( phpversion( 'imagick' ), '2.2.1', '<') || ! is_callable( $this->image, 'setIteratorIndex' ) ) 
    4242                        return false; 
    4343 
    4444                return true;