diff --git wp-includes/class-wp-image-editor-imagick.php wp-includes/class-wp-image-editor-imagick.php
index f7012d5..108a072 100644
|
|
|
class WP_Image_Editor_Imagick extends WP_Image_Editor { |
| 28 | 28 | /** |
| 29 | 29 | * Checks to see if current environment supports Imagick |
| 30 | 30 | * |
| | 31 | * Requires Imagick::queryFormats, which was introduced in Imagick 2.1.1 |
| | 32 | * |
| 31 | 33 | * @since 3.5.0 |
| 32 | 34 | * @access public |
| 33 | 35 | * |
| 34 | 36 | * @return boolean |
| 35 | 37 | */ |
| 36 | 38 | public static function test( $args = null ) { |
| 37 | | if ( ! extension_loaded( 'imagick' ) ) |
| | 39 | if ( ! extension_loaded( 'imagick' ) || ! is_callable( 'Imagick', 'queryFormats' ) ) |
| 38 | 40 | return false; |
| 39 | 41 | |
| 40 | 42 | return true; |