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/wp-db.php

    r34234 r34348  
    29942994    public function bail( $message, $error_code = '500' ) {
    29952995        if ( !$this->show_errors ) {
    2996             if ( class_exists( 'WP_Error' ) )
     2996            if ( class_exists( 'WP_Error', false ) ) {
    29972997                $this->error = new WP_Error($error_code, $message);
    2998             else
     2998            } else {
    29992999                $this->error = $message;
     3000            }
    30003001            return false;
    30013002        }
Note: See TracChangeset for help on using the changeset viewer.