mirror of
https://github.com/WordPress/WordPress.git
synced 2024-12-23 01:27:36 +01:00
Upgrader: Remove more debug from r27336. See #25860
Built from https://develop.svn.wordpress.org/trunk@27339 git-svn-id: http://core.svn.wordpress.org/trunk@27191 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
487efa7957
commit
d5775c8b6c
@ -815,7 +815,7 @@ function update_core($from, $to) {
|
||||
if ( ! is_wp_error( $result ) ) {
|
||||
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' );
|
||||
$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.' ), 'wp-includes/version.php' );
|
||||
}
|
||||
$wp_filesystem->chmod( $to . 'wp-includes/version.php', FS_CHMOD_FILE );
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user