WordPress.org

Make WordPress Core

Changeset 36916


Ignore:
Timestamp:
03/10/16 01:18:39 (18 months ago)
Author:
mikeschroder
Message:

Media: Support Imagick in HHVM.

Removes case-sensitivity from Imagick feature detection within WP_Image_Editor_Imagick::test().
This allows correct detection of Imagick support within HHVM.

Props markoheijnen, DuckDagobert.
Fixes #35973.

File:
1 edited

Legend:

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

    r36891 r36916  
    8080            return false; 
    8181 
    82         if ( array_diff( $required_methods, get_class_methods( 'Imagick' ) ) ) 
     82        $class_methods = array_map( 'strtolower', get_class_methods( 'Imagick' ) ); 
     83        if ( array_diff( $required_methods, $class_methods ) ) { 
    8384            return false; 
     85        } 
    8486 
    8587        return true; 
Note: See TracChangeset for help on using the changeset viewer.