Make WordPress Core

Changeset 9493


Ignore:
Timestamp:
11/03/2008 05:16:41 PM (17 years ago)
Author:
ryan
Message:

IF copy fails, chmod target to 0644 and try again

Location:
trunk/wp-admin
Files:
2 edited

Legend:

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

    r9460 r9493  
    543543    foreach ( (array) $dirlist as $filename => $fileinfo ) {
    544544        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            }
    547551            $wp_filesystem->chmod($to . $filename, 0644);
    548552        } elseif ( 'd' == $fileinfo['type'] ) {
  • trunk/wp-admin/wp-admin.css

    r9491 r9493  
    12911291/* Post Screen */
    12921292
     1293#normal-sortables {
     1294    min-height: 50px;
     1295}
     1296
    12931297.postbox {
    12941298    position: relative;
Note: See TracChangeset for help on using the changeset viewer.