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-admin/includes/misc.php

    r33849 r34348  
    455455    if ( ! file_exists($filename) )
    456456        return false;
    457     if ( ! class_exists('DOMDocument') )
     457    if ( ! class_exists( 'DOMDocument', false ) ) {
    458458        return false;
     459    }
    459460
    460461    $doc = new DOMDocument();
     
    482483        return true;
    483484
    484     if ( ! class_exists('DOMDocument') )
     485    if ( ! class_exists( 'DOMDocument', false ) ) {
    485486        return false;
     487    }
    486488
    487489    $doc = new DOMDocument();
     
    512514 */
    513515function iis7_add_rewrite_rule($filename, $rewrite_rule) {
    514     if ( ! class_exists('DOMDocument') )
     516    if ( ! class_exists( 'DOMDocument', false ) ) {
    515517        return false;
     518    }
    516519
    517520    // If configuration file does not exist then we create one.
Note: See TracChangeset for help on using the changeset viewer.