Make WordPress Core


Ignore:
Timestamp:
09/20/2015 03:51:55 AM (11 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-admin/includes/file.php

    r34291 r34348  
    560560         * @param bool $ziparchive Whether to use ZipArchive. Default true.
    561561         */
    562         if ( class_exists( 'ZipArchive' ) && apply_filters( 'unzip_file_use_ziparchive', true ) ) {
     562        if ( class_exists( 'ZipArchive', false ) && apply_filters( 'unzip_file_use_ziparchive', true ) ) {
    563563                $result = _unzip_file_ziparchive($file, $to, $needed_dirs);
    564564                if ( true === $result ) {
     
    849849                return false;
    850850
    851         if ( ! class_exists("WP_Filesystem_$method") ) {
     851        if ( ! class_exists( "WP_Filesystem_$method", false  ) ) {
    852852
    853853                /**
Note: See TracChangeset for help on using the changeset viewer.