Make WordPress Core

Changeset 26186


Ignore:
Timestamp:
11/15/2013 02:30:30 AM (11 years ago)
Author:
dd32
Message:

Updates: When a failed Background Update occurs, only show the failed update nag if the user hasn't yet updated if it was an early abort. Props SergeyBiryukov. Fixes #25887 for trunk

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/includes/update.php

    r25956 r26186  
    365365         */
    366366        $comparison = ! empty( $failed['critical'] ) ? '>=' : '>';
    367         if ( version_compare( $failed['attempted'], $wp_version, '>=' ) )
     367        if ( version_compare( $failed['attempted'], $wp_version, $comparison ) )
    368368            $nag = true;
    369369    }
Note: See TracChangeset for help on using the changeset viewer.