Strip trailing whitespace

git-svn-id: https://develop.svn.wordpress.org/trunk@10150 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Ryan Boren
2008-12-09 18:03:31 +00:00
parent f0f4bd82b2
commit baaaa352ba
96 changed files with 336 additions and 336 deletions

View File

@@ -292,7 +292,7 @@ function wp_update_theme($theme, $feedback = '') {
return new WP_Error('up_to_date', __('The theme is at the latest version.'));
$r = $current->response[ $theme ];
$themes = get_themes();
foreach ( (array) $themes as $this_theme ) {
if ( $this_theme['Stylesheet'] == $theme ) {
@@ -457,12 +457,12 @@ function wp_update_core($current, $feedback = '') {
$result = unzip_file($download_file, $working_dir);
// Once extracted, delete the package
unlink($download_file);
if ( is_wp_error($result) ) {
$wp_filesystem->delete($working_dir, true);
return $result;
}
// Copy update-core.php from the new version into place.
if ( !$wp_filesystem->copy($working_dir . '/wordpress/wp-admin/includes/update-core.php', $wp_dir . 'wp-admin/includes/update-core.php', true) ) {
$wp_filesystem->delete($working_dir, true);