WordPress.org

Make WordPress Core


Ignore:
Timestamp:
04/01/2014 03:30:13 AM (6 years ago)
Author:
nacin
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.

Merges [26186] from 3.8 to the 3.7 branch.

props SergeyBiryukov.
fixes #25887.

Location:
branches/3.7
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/3.7

  • branches/3.7/src/wp-admin/includes/update.php

    r25957 r27884  
    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.