Make WordPress Core


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

    r33831 r34348  
    490490     */
    491491    private function _parse_xml_body( $response_body ) {
    492         if ( ! function_exists( 'simplexml_import_dom' ) || ! class_exists( 'DOMDocument' ) )
     492        if ( ! function_exists( 'simplexml_import_dom' ) || ! class_exists( 'DOMDocument', false ) )
    493493            return false;
    494494
Note: See TracChangeset for help on using the changeset viewer.