Media: Support Imagick in HHVM.
Removes case-sensitivity from Imagick feature detection within `WP_Image_Editor_Imagick::test()`. This allows correct detection of Imagick support within HHVM. Props markoheijnen, DuckDagobert. Fixes #35973. git-svn-id: https://develop.svn.wordpress.org/trunk@36916 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
6d951b3c5d
commit
fd8bd3520c
@ -79,8 +79,10 @@ class WP_Image_Editor_Imagick extends WP_Image_Editor {
|
||||
if ( ! defined( 'imagick::COMPRESSION_JPEG' ) )
|
||||
return false;
|
||||
|
||||
if ( array_diff( $required_methods, get_class_methods( 'Imagick' ) ) )
|
||||
$class_methods = array_map( 'strtolower', get_class_methods( 'Imagick' ) );
|
||||
if ( array_diff( $required_methods, $class_methods ) ) {
|
||||
return false;
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user