Changeset 12723 for trunk/wp-admin/includes/file.php
- Timestamp:
- 01/14/2010 09:23:53 AM (16 years ago)
- File:
-
- 1 edited
-
trunk/wp-admin/includes/file.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/includes/file.php
r12544 r12723 551 551 // We've made sure the folders are there, so let's extract the file now: 552 552 if ( ! $file['folder'] ) { 553 if ( !$fs->put_contents( $to . $file['filename'], $file['content'] ) )553 if ( !$fs->put_contents( $to . $file['filename'], $file['content'], FS_CHMOD_FILE) ) 554 554 return new WP_Error('copy_failed', __('Could not copy file'), $to . $file['filename']); 555 $fs->chmod($to . $file['filename'], FS_CHMOD_FILE);556 555 } 557 556 }
Note: See TracChangeset
for help on using the changeset viewer.