Ticket #19883: 19883.diff
File 19883.diff, 913 bytes (added by , 13 years ago) |
---|
-
wp-admin/includes/class-wp-upgrader.php
933 933 $this->strings['downloading_package'] = __('Downloading update from <span class="code">%s</span>…'); 934 934 $this->strings['unpack_package'] = __('Unpacking the update…'); 935 935 $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.' ); 936 937 } 937 938 938 939 function upgrade($current) { … … 985 986 986 987 require(ABSPATH . 'wp-admin/includes/update-core.php'); 987 988 989 if ( ! function_exists( 'update_core' ) ) 990 return new WP_Error( 'copy_failed_space', $this->strings['copy_failed_space'] ); 991 988 992 return update_core($working_dir, $wp_dir); 989 993 } 990 994