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

    r34170 r34348  
    3838     */
    3939    $admin_bar_class = apply_filters( 'wp_admin_bar_class', 'WP_Admin_Bar' );
    40     if ( class_exists( $admin_bar_class ) )
     40    if ( class_exists( $admin_bar_class, false ) )
    4141        $wp_admin_bar = new $admin_bar_class;
    4242    else
Note: See TracChangeset for help on using the changeset viewer.