Changeset 44566 for trunk/src/wp-admin/update-core.php
- Timestamp:
- 01/11/2019 06:39:55 AM (8 years ago)
- File:
-
- 1 edited
-
trunk/src/wp-admin/update-core.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/update-core.php
r44451 r44566 40 40 if ( 'en_US' == $update->locale && 'en_US' == get_locale() ) { 41 41 $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. 44 44 $version_string = $update->current; 45 45 } else { … … 122 122 if ( 'en_US' != $update->locale && ( ! isset( $wp_local_package ) || $wp_local_package != $update->locale ) ) { 123 123 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. 126 126 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>'; 127 127 }
Note:
See TracChangeset
for help on using the changeset viewer.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)