WordPress.org

Make WordPress Core


Ignore:
Timestamp:
01/11/2019 06:39:55 AM (10 months ago)
Author:
pento
Message:

Coding Standards: Fix the Squiz.ControlStructures.ControlSignature.SpaceAfterCloseBrace violations.

See #45934.

File:
1 edited

Legend:

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

    r44451 r44566  
    4040    if ( 'en_US' == $update->locale && 'en_US' == get_locale() ) {
    4141        $version_string = $update->current;
    42     } // If the only available update is a partial builds, it doesn't need a language-specific version string.
    43     elseif ( 'en_US' == $update->locale && $update->packages->partial && $wp_version == $update->partial_version && ( $updates = get_core_updates() ) && 1 == count( $updates ) ) {
     42    } elseif ( 'en_US' == $update->locale && $update->packages->partial && $wp_version == $update->partial_version && ( $updates = get_core_updates() ) && 1 == count( $updates ) ) {
     43        // If the only available update is a partial builds, it doesn't need a language-specific version string.
    4444        $version_string = $update->current;
    4545    } else {
     
    122122    if ( 'en_US' != $update->locale && ( ! isset( $wp_local_package ) || $wp_local_package != $update->locale ) ) {
    123123        echo '<p class="hint">' . __( 'This localized version contains both the translation and various other localization fixes. You can skip upgrading if you want to keep your current translation.' ) . '</p>';
    124     } // Partial builds don't need language-specific warnings.
    125     elseif ( 'en_US' == $update->locale && get_locale() != 'en_US' && ( ! $update->packages->partial && $wp_version == $update->partial_version ) ) {
     124    } elseif ( 'en_US' == $update->locale && get_locale() != 'en_US' && ( ! $update->packages->partial && $wp_version == $update->partial_version ) ) {
     125        // Partial builds don't need language-specific warnings.
    126126        echo '<p class="hint">' . sprintf( __( 'You are about to install WordPress %s <strong>in English (US).</strong> There is a chance this update will break your translation. You may prefer to wait for the localized version to be released.' ), $update->response != 'development' ? $update->current : '' ) . '</p>';
    127127    }
Note: See TracChangeset for help on using the changeset viewer.