From 1a43f0b2907497c18344dc983a32c82df636aed4 Mon Sep 17 00:00:00 2001 From: Mark Jaquith Date: Mon, 30 Nov 2015 04:15:27 +0000 Subject: [PATCH] Do not pass FALSE as second parameter in variable class_exists() checks Because these are generally plugin-provided, we want plugins to be able to use autoloaders. fixes #20523 Built from https://develop.svn.wordpress.org/trunk@35749 git-svn-id: http://core.svn.wordpress.org/trunk@35713 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-admin/includes/ajax-actions.php | 2 +- wp-admin/includes/file.php | 2 +- wp-admin/includes/nav-menu.php | 2 +- wp-includes/admin-bar.php | 2 +- wp-includes/version.php | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/wp-admin/includes/ajax-actions.php b/wp-admin/includes/ajax-actions.php index cf1e92b036..d96a2fba0b 100644 --- a/wp-admin/includes/ajax-actions.php +++ b/wp-admin/includes/ajax-actions.php @@ -1196,7 +1196,7 @@ function wp_ajax_add_menu_item() { /** This filter is documented in wp-admin/includes/nav-menu.php */ $walker_class_name = apply_filters( 'wp_edit_nav_menu_walker', 'Walker_Nav_Menu_Edit', $_POST['menu'] ); - if ( ! class_exists( $walker_class_name, false ) ) + if ( ! class_exists( $walker_class_name ) ) wp_die( 0 ); if ( ! empty( $menu_items ) ) { diff --git a/wp-admin/includes/file.php b/wp-admin/includes/file.php index d588e15e6c..3b4d1c6e4c 100644 --- a/wp-admin/includes/file.php +++ b/wp-admin/includes/file.php @@ -866,7 +866,7 @@ function WP_Filesystem( $args = false, $context = false, $allow_relaxed_file_own if ( ! $method ) return false; - if ( ! class_exists( "WP_Filesystem_$method", false ) ) { + if ( ! class_exists( "WP_Filesystem_$method" ) ) { /** * Filter the path for a specific filesystem method class file. diff --git a/wp-admin/includes/nav-menu.php b/wp-admin/includes/nav-menu.php index 5944f93bd2..16b157e777 100644 --- a/wp-admin/includes/nav-menu.php +++ b/wp-admin/includes/nav-menu.php @@ -899,7 +899,7 @@ function wp_get_nav_menu_to_edit( $menu_id = 0 ) { */ $walker_class_name = apply_filters( 'wp_edit_nav_menu_walker', 'Walker_Nav_Menu_Edit', $menu_id ); - if ( class_exists( $walker_class_name, false ) ) { + if ( class_exists( $walker_class_name ) ) { $walker = new $walker_class_name; } else { return new WP_Error( 'menu_walker_not_exist', diff --git a/wp-includes/admin-bar.php b/wp-includes/admin-bar.php index 162e680149..2bf56a8630 100644 --- a/wp-includes/admin-bar.php +++ b/wp-includes/admin-bar.php @@ -39,7 +39,7 @@ function _wp_admin_bar_init() { * @param string $wp_admin_bar_class Admin bar class to use. Default 'WP_Admin_Bar'. */ $admin_bar_class = apply_filters( 'wp_admin_bar_class', 'WP_Admin_Bar' ); - if ( class_exists( $admin_bar_class, false ) ) + if ( class_exists( $admin_bar_class ) ) $wp_admin_bar = new $admin_bar_class; else return false; diff --git a/wp-includes/version.php b/wp-includes/version.php index 34e03d227b..4d75129a59 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -4,7 +4,7 @@ * * @global string $wp_version */ -$wp_version = '4.4-RC1-35748'; +$wp_version = '4.4-RC1-35749'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.