Code Modernization: Remove a workaround for HHVM in WP_Image_Editor_Imagick::test().

Support for HHVM was dropped in 2017 via #40548.

Props jrf.
See #48074.

git-svn-id: https://develop.svn.wordpress.org/trunk@46216 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Sergey Biryukov
2019-09-20 22:12:06 +00:00
parent 9fd60c9e57
commit 8991815b62
@@ -83,11 +83,6 @@ class WP_Image_Editor_Imagick extends WP_Image_Editor {
return false;
}
// HHVM Imagick does not support loading from URL, so fail to allow fallback to GD.
if ( defined( 'HHVM_VERSION' ) && isset( $args['path'] ) && preg_match( '|^https?://|', $args['path'] ) ) {
return false;
}
return true;
}