Make WordPress Core


Ignore:
Timestamp:
09/20/2015 03:51:55 AM (9 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/functions.php

    r34265 r34348  
    36913691         * via ISAPI then pretty permalinks will not work.
    36923692         */
    3693         $supports_permalinks = class_exists('DOMDocument') && isset($_SERVER['IIS_UrlRewriteModule']) && ( PHP_SAPI == 'cgi-fcgi' );
     3693        $supports_permalinks = class_exists( 'DOMDocument', false ) && isset($_SERVER['IIS_UrlRewriteModule']) && ( PHP_SAPI == 'cgi-fcgi' );
    36943694    }
    36953695
Note: See TracChangeset for help on using the changeset viewer.