Pass false as the 2nd argument to class_exists() to disable autoloading and to not cause problems for those who define __autoload().
Fixes #20523. Built from https://develop.svn.wordpress.org/trunk@34348 git-svn-id: http://core.svn.wordpress.org/trunk@34312 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
@@ -2387,7 +2387,7 @@ function wp_text_diff( $left_string, $right_string, $args = null ) {
|
||||
$defaults = array( 'title' => '', 'title_left' => '', 'title_right' => '' );
|
||||
$args = wp_parse_args( $args, $defaults );
|
||||
|
||||
if ( !class_exists( 'WP_Text_Diff_Renderer_Table' ) )
|
||||
if ( ! class_exists( 'WP_Text_Diff_Renderer_Table', false ) )
|
||||
require( ABSPATH . WPINC . '/wp-diff.php' );
|
||||
|
||||
$left_string = normalize_whitespace($left_string);
|
||||
|
||||
Reference in New Issue
Block a user