Upgrader: Remove some debug from r27336. See #25860

Built from https://develop.svn.wordpress.org/trunk@27338


git-svn-id: http://core.svn.wordpress.org/trunk@27190 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Dion Hulse 2014-03-01 06:04:14 +00:00
parent 6b280a820e
commit 487efa7957
1 changed files with 1 additions and 1 deletions

View File

@ -813,7 +813,7 @@ function update_core($from, $to) {
// Since we know the core files have copied over, we can now copy the version file
if ( ! is_wp_error( $result ) ) {
if ( ! $r = $wp_filesystem->copy( $from . $distro . 'wp-includes/version.php', $to . 'wp-includes/version.php', true /* overwrite */ ) ) {
if ( ! $wp_filesystem->copy( $from . $distro . 'wp-includes/version.php', $to . 'wp-includes/version.php', true /* overwrite */ ) ) {
$wp_filesystem->delete( $from, true );
$result = new WP_Error( 'copy_failed_for_version_file', __( 'The update cannot be installed because we will be unable to copy some files. This is usually due to inconsistent file permissions.' ), 'WTFwp-includes/version.php' );
}