Coding Standards: Use strict comparison in `wp-admin/update-core.php`.
Follow-up to [11273], [25784], [54654]. Props wpfy, mukesh27, azaozz, viralsampat. Fixes #58061, #60415. Built from https://develop.svn.wordpress.org/trunk@57529 git-svn-id: http://core.svn.wordpress.org/trunk@57030 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
9fb7267542
commit
0865d6ec9d
|
@ -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 '</p>';
|
||||
|
||||
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 '<p class="hint">' . __( 'This localized version contains both the translation and various other localization fixes.' ) . '</p>';
|
||||
} 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 '<p class="hint">' . sprintf(
|
||||
/* translators: %s: WordPress version. */
|
||||
|
|
|
@ -16,7 +16,7 @@
|
|||
*
|
||||
* @global string $wp_version
|
||||
*/
|
||||
$wp_version = '6.5-alpha-57528';
|
||||
$wp_version = '6.5-alpha-57529';
|
||||
|
||||
/**
|
||||
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||
|
|
Loading…
Reference in New Issue