WordPress.org

Make WordPress Core

Changeset 22581


Ignore:
Timestamp:
11/14/2012 10:19:32 PM (6 years ago)
Author:
nacin
Message:

Require Imagick 2.1.1 or greater, based on whether the queryFormats() method can be called statically.

props markoheijnen, DH-Shredder. fixes #22308.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/class-wp-image-editor-imagick.php

    r22549 r22581  
    2727
    2828    /**
    29      * Checks to see if current environment supports Imagick
     29     * Checks to see if current environment supports Imagick.
     30     *
     31     * We require Imagick 2.1.1 or greater, based on whether the queryFormats()
     32     * method can be called statically.
    3033     *
    3134     * @since 3.5.0
     
    3538     */
    3639    public static function test( $args = null ) {
    37         if ( ! extension_loaded( 'imagick' ) )
     40        if ( ! extension_loaded( 'imagick' ) || ! is_callable( 'Imagick', 'queryFormats' ) )
    3841            return false;
    3942
Note: See TracChangeset for help on using the changeset viewer.