mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-12-06 12:51:58 +00:00
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:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user