From 6cd1fe4ecd0d0719187d23a2f1d77b880dbeaedc Mon Sep 17 00:00:00 2001 From: Andrew Nacin Date: Fri, 25 Oct 2013 20:16:38 +0000 Subject: [PATCH] Avoid a notice for an undefined $checksums variable when updating from pre-3.7 to post-3.7. Merges [25915] to the 3.7 branch. props GaryJ. fixes #25689. git-svn-id: https://develop.svn.wordpress.org/branches/3.7@25916 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 52ef1fd449..b841268b5e 100644 --- a/src/wp-admin/includes/update-core.php +++ b/src/wp-admin/includes/update-core.php @@ -750,7 +750,7 @@ function update_core($from, $to) { // Check to make sure everything copied correctly, ignoring the contents of wp-content $skip = array( 'wp-content' ); $failed = array(); - if ( is_array( $checksums ) ) { + if ( isset( $checksums ) && is_array( $checksums ) ) { foreach ( $checksums as $file => $checksum ) { if ( 0 === strpos( $file, 'wp-content' ) ) continue;