mirror of
https://github.com/WordPress/WordPress.git
synced 2025-02-16 19:46:21 +00:00
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:
parent
a3bc5f60da
commit
742f09dbc7
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user