Use full path to fs abstraction class. Props DD32. fixes #6912
git-svn-id: https://develop.svn.wordpress.org/trunk@7895 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
0a7374085b
commit
b8799eb470
@ -313,10 +313,15 @@ function WP_Filesystem( $args = false ) {
|
|||||||
global $wp_filesystem;
|
global $wp_filesystem;
|
||||||
|
|
||||||
$method = get_filesystem_method();
|
$method = get_filesystem_method();
|
||||||
|
|
||||||
if ( ! $method )
|
if ( ! $method )
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
require_once('class-wp-filesystem-'.$method.'.php');
|
$abstraction_file = apply_filters('filesystem_method_file', ABSPATH . 'wp-admin/includes/class-wp-filesystem-'.$method.'.php', $method);
|
||||||
|
if( ! file_exists($abstraction_file) )
|
||||||
|
return;
|
||||||
|
|
||||||
|
require_once($abstraction_file);
|
||||||
$method = "WP_Filesystem_$method";
|
$method = "WP_Filesystem_$method";
|
||||||
|
|
||||||
$wp_filesystem = new $method($args);
|
$wp_filesystem = new $method($args);
|
||||||
|
Loading…
Reference in New Issue
Block a user