From 8991815b621a2af1743b3c1323b3185b9a412d42 Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Fri, 20 Sep 2019 22:12:06 +0000 Subject: [PATCH] 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 --- src/wp-includes/class-wp-image-editor-imagick.php | 5 ----- 1 file changed, 5 deletions(-) diff --git a/src/wp-includes/class-wp-image-editor-imagick.php b/src/wp-includes/class-wp-image-editor-imagick.php index 1d119f4609..45a119c9c9 100644 --- a/src/wp-includes/class-wp-image-editor-imagick.php +++ b/src/wp-includes/class-wp-image-editor-imagick.php @@ -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; }