Call Imagick::queryformats() non-statically to preserve back compat with older versions of Imagick.

Props mpvanwinkle77
fixes #22308
see #6821


git-svn-id: http://core.svn.wordpress.org/trunk@22421 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Ryan Boren 2012-11-07 17:50:38 +00:00
parent 03794fddb3
commit 15f0f2524e

View File

@ -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;
}
}
}