Make WordPress Core

Ticket #60415: 60415.3.patch

File 60415.3.patch, 1.6 KB (added by viralsampat, 14 months ago)
  • src/wp-admin/update-core.php

    diff --git src/wp-admin/update-core.php src/wp-admin/update-core.php
    index c34ac06f24..80fbd530b2 100644
    function list_core_update( $update ) { 
    4242
    4343        if ( 'en_US' === $update->locale && 'en_US' === get_locale() ) {
    4444                $version_string = $update->current;
    45         } elseif ( 'en_US' === $update->locale && $update->packages->partial && $wp_version == $update->partial_version ) {
     45        } elseif ( 'en_US' === $update->locale && $update->packages->partial && $wp_version === $update->partial_version ) {
    4646                $updates = get_core_updates();
    4747                if ( $updates && 1 === count( $updates ) ) {
    4848                        // If the only available update is a partial builds, it doesn't need a language-specific version string.
    function list_core_update( $update ) { 
    179179        }
    180180        echo '</p>';
    181181
    182         if ( 'en_US' !== $update->locale && ( ! isset( $wp_local_package ) || $wp_local_package != $update->locale ) ) {
     182        if ( 'en_US' !== $update->locale && ( ! isset( $wp_local_package ) || $wp_local_package !== $update->locale ) ) {
    183183                echo '<p class="hint">' . __( 'This localized version contains both the translation and various other localization fixes.' ) . '</p>';
    184         } elseif ( 'en_US' === $update->locale && 'en_US' !== get_locale() && ( ! $update->packages->partial && $wp_version == $update->partial_version ) ) {
     184        } elseif ( 'en_US' === $update->locale && 'en_US' !== get_locale() && ( ! $update->packages->partial && $wp_version === $update->partial_version ) ) {
    185185                // Partial builds don't need language-specific warnings.
    186186                echo '<p class="hint">' . sprintf(
    187187                        /* translators: %s: WordPress version. */