mirror of
https://github.com/WordPress/WordPress.git
synced 2024-12-22 09:07:59 +01:00
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:
parent
03794fddb3
commit
15f0f2524e
@ -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