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
This commit is contained in:
parent
337feb46b2
commit
01023d9bfa
|
@ -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