Changeset 8595 for trunk/wp-admin/includes/file.php
- Timestamp:
- 08/08/2008 10:49:35 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/includes/file.php
r8580 r8595 409 409 $wp_filesystem->chmod($to . $filename, 0644); 410 410 } 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 } 413 415 $result = copy_dir($from . $filename, $to . $filename); 414 416 if ( is_wp_error($result) )
Note: See TracChangeset
for help on using the changeset viewer.