Make WordPress Core

Ticket #25689: 25689.diff

File 25689.diff, 588 bytes (added by GaryJ, 11 years ago)

Add isset() check

  • wp-admin/includes/update-core.php

     
    750750        // Check to make sure everything copied correctly, ignoring the contents of wp-content
    751751        $skip = array( 'wp-content' );
    752752        $failed = array();
    753         if ( is_array( $checksums ) ) {
     753        if ( isset( $checksums ) && is_array( $checksums ) ) {
    754754                foreach ( $checksums as $file => $checksum ) {
    755755                        if ( 0 === strpos( $file, 'wp-content' ) )
    756756                                continue;