Make WordPress Core

Ticket #19883: 19883.diff

File 19883.diff, 913 bytes (added by nacin, 13 years ago)
  • wp-admin/includes/class-wp-upgrader.php

     
    933933                $this->strings['downloading_package'] = __('Downloading update from <span class="code">%s</span>&#8230;');
    934934                $this->strings['unpack_package'] = __('Unpacking the update&#8230;');
    935935                $this->strings['copy_failed'] = __('Could not copy files.');
     936                $this->strings['copy_failed_space'] = __('Could not copy files. You may have run out of disk space.' );
    936937        }
    937938
    938939        function upgrade($current) {
     
    985986
    986987                require(ABSPATH . 'wp-admin/includes/update-core.php');
    987988
     989                if ( ! function_exists( 'update_core' ) )
     990                        return new WP_Error( 'copy_failed_space', $this->strings['copy_failed_space'] );
     991
    988992                return update_core($working_dir, $wp_dir);
    989993        }
    990994