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

    r33671 r34348  
    317317}
    318318
    319 if ( !class_exists('WP_User_Search') ) :
     319if ( ! class_exists( 'WP_User_Search', false ) ) :
    320320/**
    321321 * WordPress User Search class.
     
    758758    static $num = 1;
    759759
    760     if ( ! class_exists('_WP_Editors' ) )
     760    if ( ! class_exists( '_WP_Editors', false ) )
    761761        require_once( ABSPATH . WPINC . '/class-wp-editor.php' );
    762762
Note: See TracChangeset for help on using the changeset viewer.