WordPress.org

Make WordPress Core

Ticket #16021: 16021.patch

File 16021.patch, 1010 bytes (added by SergeyBiryukov, 4 years ago)
  • wp-admin/update-core.php

     
    7474        echo '</p>'; 
    7575        if ( 'en_US' != $update->locale && ( !isset($wp_local_package) || $wp_local_package != $update->locale ) ) 
    7676            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>'; 
    77         else if ( 'en_US' == $update->locale && get_locale() != 'en_US' ) { 
     77        else if ( 'en_US' == $update->locale && get_locale() != 'en_US' && 'development' != $update->response ) { 
    7878            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->current ).'</p>'; 
    7979        } 
    8080        echo '</form>';