Use full path to fs abstraction class. Props DD32. fixes #6912

git-svn-id: http://svn.automattic.com/wordpress/trunk@7895 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
ryan 2008-05-05 17:06:29 +00:00
parent a3bc5f60da
commit 742f09dbc7
1 changed files with 6 additions and 1 deletions

View File

@ -313,10 +313,15 @@ function WP_Filesystem( $args = false ) {
global $wp_filesystem;
$method = get_filesystem_method();
if ( ! $method )
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";
$wp_filesystem = new $method($args);