mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-08-16 23:00:21 +00:00
Pass false as the 2nd argument to class_exists() to disable autoloading and to not cause problems for those who define __autoload().
Fixes #20523. git-svn-id: https://develop.svn.wordpress.org/trunk@34348 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -316,7 +316,7 @@ function get_nonauthor_user_ids() {
|
||||
return $wpdb->get_col( $wpdb->prepare("SELECT user_id FROM $wpdb->usermeta WHERE meta_key = %s AND meta_value = '0'", $level_key) );
|
||||
}
|
||||
|
||||
if ( !class_exists('WP_User_Search') ) :
|
||||
if ( ! class_exists( 'WP_User_Search', false ) ) :
|
||||
/**
|
||||
* WordPress User Search class.
|
||||
*
|
||||
@@ -757,7 +757,7 @@ function wp_tiny_mce( $teeny = false, $settings = false ) {
|
||||
|
||||
static $num = 1;
|
||||
|
||||
if ( ! class_exists('_WP_Editors' ) )
|
||||
if ( ! class_exists( '_WP_Editors', false ) )
|
||||
require_once( ABSPATH . WPINC . '/class-wp-editor.php' );
|
||||
|
||||
$editor_id = 'content' . $num++;
|
||||
|
||||
Reference in New Issue
Block a user