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:
parent
9e70ced313
commit
9a2bf56fc3
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user