From 01023d9bfa2830e30b993629eeb759c274f95960 Mon Sep 17 00:00:00 2001 From: Andrew Nacin Date: Fri, 25 Oct 2013 20:17:09 +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. Built from https://develop.svn.wordpress.org/branches/3.7@25916 git-svn-id: http://core.svn.wordpress.org/branches/3.7@25879 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-admin/includes/update-core.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wp-admin/includes/update-core.php b/wp-admin/includes/update-core.php index 52ef1fd449..b841268b5e 100644 --- a/wp-admin/includes/update-core.php +++ b/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;