Changeset 9493
- Timestamp:
- 11/03/2008 05:16:41 PM (17 years ago)
- Location:
- trunk/wp-admin
- Files:
-
- 2 edited
-
includes/file.php (modified) (1 diff)
-
wp-admin.css (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/includes/file.php
r9460 r9493 543 543 foreach ( (array) $dirlist as $filename => $fileinfo ) { 544 544 if ( 'f' == $fileinfo['type'] ) { 545 if ( ! $wp_filesystem->copy($from . $filename, $to . $filename, true) ) 546 return new WP_Error('copy_failed', __('Could not copy file'), $to . $filename); 545 if ( ! $wp_filesystem->copy($from . $filename, $to . $filename, true) ) { 546 // If copy failed, chmod file to 0644 and try again. 547 $wp_filesystem->chmod($to . $filename, 0644); 548 if ( ! $wp_filesystem->copy($from . $filename, $to . $filename, true) ) 549 return new WP_Error('copy_failed', __('Could not copy file'), $to . $filename); 550 } 547 551 $wp_filesystem->chmod($to . $filename, 0644); 548 552 } elseif ( 'd' == $fileinfo['type'] ) { -
trunk/wp-admin/wp-admin.css
r9491 r9493 1291 1291 /* Post Screen */ 1292 1292 1293 #normal-sortables { 1294 min-height: 50px; 1295 } 1296 1293 1297 .postbox { 1294 1298 position: relative;
Note: See TracChangeset
for help on using the changeset viewer.