Call Imagick::queryformats() non-statically to preserve back compat with older versions of Imagick.
Props mpvanwinkle77 fixes #22308 see #6821 git-svn-id: https://develop.svn.wordpress.org/trunk@22421 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
7cd087d4b2
commit
08a2d93b7c
@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user