WordPress.org

Make WordPress Core

Ticket #47704: 47704-maintenance-nag.diff

File 47704-maintenance-nag.diff, 602 bytes (added by desrosj, 11 months ago)
  • src/wp-admin/includes/update.php

     
    707707                 * This flag is cleared whenever a successful update occurs using Core_Upgrader.
    708708                 */
    709709                $comparison = ! empty( $failed['critical'] ) ? '>=' : '>';
    710                 if ( version_compare( $failed['attempted'], $wp_version, $comparison ) ) {
     710                if ( isset( $failed['attempted'] ) && version_compare( $failed['attempted'], $wp_version, $comparison ) ) {
    711711                        $nag = true;
    712712                }
    713713        }