WordPress.org

Make WordPress Core

Changeset 52197


Ignore:
Timestamp:
11/17/2021 04:22:19 PM (3 weeks ago)
Author:
audrasjb
Message:

Upgrade/Install: Differentiate en_US version strings from localized ones.

Adds a condition to $version_string to determine whether the Core update is the original en_US package, or a localized one.

This change fixes an issue where these packages were not differentiated and duplicate messages were displayed.

Props Presskopp, benjamingosset.
Fixes #53710.

File:
1 edited

Legend:

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

    r51914 r52197  
    4949            $version_string = $update->current;
    5050        }
     51    } elseif ( 'en_US' === $update->locale && 'en_US' !== get_locale() ) {
     52        $version_string = sprintf( '%s–%s', $update->current, $update->locale );
    5153    }
    5254
Note: See TracChangeset for help on using the changeset viewer.