WordPress.org

Make WordPress Core

Ticket #25887: 25887.patch

File 25887.patch, 560 bytes (added by SergeyBiryukov, 7 years ago)
  • src/wp-admin/includes/update.php

     
    364364                 * This flag is cleared whenever a successful update occurs using Core_Upgrader.
    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        }
    370370