Make WordPress Core

Ticket #48074: 48074-src-Remove-work-arounds-for-HHVM.patch

File 48074-src-Remove-work-arounds-for-HHVM.patch, 935 bytes (added by jrf, 5 years ago)

Support for HHVM was dropped in 2017 via ticket #40548. This removes the one code work-around which I found which still checked for HHVM.

  • src/wp-includes/class-wp-image-editor-imagick.php

    From bedaa14e70f2f356d5eb57b8b23626e011e27e61 Mon Sep 17 00:00:00 2001
    From: jrfnl <jrfnl@users.noreply.github.com>
    Date: Sat, 27 Jul 2019 04:32:09 +0200
    Subject: [PATCH] [src] Remove work-arounds for HHVM
    
    ---
     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 eb5ee112fb..ddd0b5f6f1 100644
    a b class WP_Image_Editor_Imagick extends WP_Image_Editor { 
    8383                        return false;
    8484                }
    8585
    86                 // HHVM Imagick does not support loading from URL, so fail to allow fallback to GD.
    87                 if ( defined( 'HHVM_VERSION' ) && isset( $args['path'] ) && preg_match( '|^https?://|', $args['path'] ) ) {
    88                         return false;
    89                 }
    90 
    9186                return true;
    9287        }
    9388