Make WordPress Core


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

    r34334 r34348  
    25812581 */
    25822582function wp_editor( $content, $editor_id, $settings = array() ) {
    2583         if ( ! class_exists( '_WP_Editors' ) )
     2583        if ( ! class_exists( '_WP_Editors', false ) )
    25842584                require( ABSPATH . WPINC . '/class-wp-editor.php' );
    25852585
Note: See TracChangeset for help on using the changeset viewer.