Avoid a notice for an undefined $checksums variable when updating from pre-3.7 to post-3.7.

props GaryJ.
fixes #25689 for trunk.


git-svn-id: https://develop.svn.wordpress.org/trunk@25915 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Andrew Nacin 2013-10-25 20:14:23 +00:00
parent 9e70ced313
commit 9a2bf56fc3
1 changed files with 1 additions and 1 deletions

View File

@ -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;