Make WordPress Core

Changeset 7895


Ignore:
Timestamp:
05/05/2008 05:06:29 PM (18 years ago)
Author:
ryan
Message:

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • 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
Note: See TracChangeset for help on using the changeset viewer.