Changeset 7895

Show
Ignore:
Timestamp:
05/05/08 17:06:29 (7 months ago)
Author:
ryan
Message:

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

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/wp-admin/includes/file.php

    r7840 r7895  
    314314 
    315315    $method = get_filesystem_method(); 
     316 
    316317    if ( ! $method ) 
    317318        return false; 
    318319 
    319     require_once('class-wp-filesystem-'.$method.'.php'); 
     320    $abstraction_file = apply_filters('filesystem_method_file', ABSPATH . 'wp-admin/includes/class-wp-filesystem-'.$method.'.php', $method); 
     321    if( ! file_exists($abstraction_file) ) 
     322        return; 
     323 
     324    require_once($abstraction_file); 
    320325    $method = "WP_Filesystem_$method"; 
    321326