mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-03-30 10:14:31 +00:00
Strip trailing whitespace
git-svn-id: https://develop.svn.wordpress.org/trunk@10150 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user