From e98848a3c65520e24c880bab54d13655e49d7b8c Mon Sep 17 00:00:00 2001 From: Dion Hulse Date: Sat, 1 Mar 2014 06:03:55 +0000 Subject: [PATCH] Upgrader: Remove some debug from r27336. See #25860 git-svn-id: https://develop.svn.wordpress.org/trunk@27338 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-admin/includes/update-core.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/wp-admin/includes/update-core.php b/src/wp-admin/includes/update-core.php index 47da156dc6..e730d7dfb0 100644 --- a/src/wp-admin/includes/update-core.php +++ b/src/wp-admin/includes/update-core.php @@ -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' ); }