Make WordPress Core

Changeset 36996


Ignore:
Timestamp:
03/15/2016 12:14:42 AM (9 years ago)
Author:
mikeschroder
Message:

Media: Fall back to GD when loading URL in HHVM Imagick.

HHVM does not currently support loading URLs in its port of Imagick.
Fixes test_wp_crop_image_url() failure introduced in [36916].

See #35973.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/class-wp-image-editor-imagick.php

    r36968 r36996  
    8585        }
    8686
     87        // HHVM Imagick does not support loading from URL, so fail to allow fallback to GD.
     88        if ( defined( 'HHVM_VERSION' ) && isset( $args['path'] ) && preg_match( '|^https?://|', $args['path'] ) ) {
     89            return false;
     90        }
     91
    8792        return true;
    8893    }
Note: See TracChangeset for help on using the changeset viewer.