diff --git a/src/wp-admin/update-core.php b/src/wp-admin/update-core.php index c34ac06f24..80fbd530b2 100644 --- a/src/wp-admin/update-core.php +++ b/src/wp-admin/update-core.php @@ -42,7 +42,7 @@ function list_core_update( $update ) { if ( 'en_US' === $update->locale && 'en_US' === get_locale() ) { $version_string = $update->current; - } elseif ( 'en_US' === $update->locale && $update->packages->partial && $wp_version == $update->partial_version ) { + } elseif ( 'en_US' === $update->locale && $update->packages->partial && $wp_version === $update->partial_version ) { $updates = get_core_updates(); if ( $updates && 1 === count( $updates ) ) { // If the only available update is a partial builds, it doesn't need a language-specific version string. @@ -179,9 +179,9 @@ function list_core_update( $update ) { } echo '
'; - if ( 'en_US' !== $update->locale && ( ! isset( $wp_local_package ) || $wp_local_package != $update->locale ) ) { + if ( 'en_US' !== $update->locale && ( ! isset( $wp_local_package ) || $wp_local_package !== $update->locale ) ) { echo '' . __( 'This localized version contains both the translation and various other localization fixes.' ) . '
'; - } elseif ( 'en_US' === $update->locale && 'en_US' !== get_locale() && ( ! $update->packages->partial && $wp_version == $update->partial_version ) ) { + } elseif ( 'en_US' === $update->locale && 'en_US' !== get_locale() && ( ! $update->packages->partial && $wp_version === $update->partial_version ) ) { // Partial builds don't need language-specific warnings. echo '' . sprintf( /* translators: %s: WordPress version. */