WordPress.org

Make WordPress Core


Ignore:
Timestamp:
09/20/2015 03:51:55 AM (6 years ago)
Author:
wonderboymusic
Message:

Pass false as the 2nd argument to class_exists() to disable autoloading and to not cause problems for those who define __autoload().

Fixes #20523.

File:
1 edited

Legend:

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

    r33052 r34348  
    4949
    5050        // First, test Imagick's extension and classes.
    51         if ( ! extension_loaded( 'imagick' ) || ! class_exists( 'Imagick' ) || ! class_exists( 'ImagickPixel' ) )
     51        if ( ! extension_loaded( 'imagick' ) || ! class_exists( 'Imagick', false ) || ! class_exists( 'ImagickPixel', false ) )
    5252            return false;
    5353
Note: See TracChangeset for help on using the changeset viewer.