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
This commit is contained in:
Mark Jaquith
2015-11-30 04:15:27 +00:00
parent ec24d6e001
commit 1a43f0b290
5 changed files with 5 additions and 5 deletions

View File

@@ -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.