Make WordPress Core


Ignore:
Timestamp:
08/08/2008 10:49:35 PM (16 years ago)
Author:
ryan
Message:

Automatic upgrade, first cut. see #5560

File:
1 edited

Legend:

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

    r8580 r8595  
    409409            $wp_filesystem->chmod($to . $filename, 0644);
    410410        } elseif ( 'd' == $fileinfo['type'] ) {
    411             if ( !$wp_filesystem->mkdir($to . $filename, 0755) )
    412                 return new WP_Error('mkdir_failed', __('Could not create directory'), $to . $filename);
     411            if ( !$wp_filesystem->is_dir($to . $filename) ) {
     412                if ( !$wp_filesystem->mkdir($to . $filename, 0755) )
     413                    return new WP_Error('mkdir_failed', __('Could not create directory'), $to . $filename);
     414            }
    413415            $result = copy_dir($from . $filename, $to . $filename);
    414416            if ( is_wp_error($result) )
Note: See TracChangeset for help on using the changeset viewer.