diff --git a/wp-includes/class-wp-image-editor-imagick.php b/wp-includes/class-wp-image-editor-imagick.php index 9b87b8d439..9d2c8220f5 100644 --- a/wp-includes/class-wp-image-editor-imagick.php +++ b/wp-includes/class-wp-image-editor-imagick.php @@ -150,7 +150,7 @@ class WP_Image_Editor_Imagick extends WP_Image_Editor { $imagick_extension = strtoupper( self::get_extension( $mime_type ) ); try { - return ( (bool) Imagick::queryFormats( $imagick_extension ) ); + return ( (bool) $this->image->queryFormats( $imagick_extension ) ); } catch ( Exception $e ) { return false; @@ -407,4 +407,4 @@ class WP_Image_Editor_Imagick extends WP_Image_Editor { return true; } -} \ No newline at end of file +}