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.
Built from https://develop.svn.wordpress.org/trunk@36996


git-svn-id: http://core.svn.wordpress.org/trunk@36963 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Mike Schroder 2016-03-15 00:15:26 +00:00
parent 852f085d19
commit 9af79e2582
2 changed files with 6 additions and 1 deletions

View File

@ -84,6 +84,11 @@ 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;
}

View File

@ -4,7 +4,7 @@
*
* @global string $wp_version
*/
$wp_version = '4.5-beta3-36995';
$wp_version = '4.5-beta3-36996';
/**
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.