WordPress.org

Make WordPress Core

Ticket #8729: local-upgrade-hint.diff

File local-upgrade-hint.diff, 1.5 KB (added by nbachiyski, 5 years ago)
  • wp-admin/wp-admin.css

     
    1  
    21textarea, 
    32input, 
    43select { 
     
    29222921        margin-top: 8px; 
    29232922} 
    29242923 
     2924form.upgrade .hint { 
     2925        font-style: italic; 
     2926        font-size: 85%; 
     2927        margin: -0.5em 0 2em 0; 
     2928} 
     2929 
    29252930#poststuff .inside .the-tagcloud { 
    29262931        margin: 5px 0 10px; 
    29272932        padding: 8px; 
  • wp-admin/update-core.php

     
    1313        wp_die(__('You do not have sufficient permissions to update plugins for this blog.')); 
    1414 
    1515function list_core_update( $update ) { 
     16    global $wp_local_package; 
    1617        $version_string = 'en_US' == $update->locale ? 
    1718                        $update->current : sprintf("%s&ndash;<strong>%s</strong>", $update->current, $update->locale); 
    1819        $current = false; 
     
    5051                else 
    5152                        echo '<input id="undismiss" class="button" type="submit" value="' . attribute_escape(__('Bring back this update')) . '" name="undismiss" />'; 
    5253        echo '</p>'; 
     54        if ( 'en_US' != $update->locale && ( !isset($wp_local_package) || $wp_local_package != $update->locale ) ) 
     55            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>'; 
    5356        echo '</form>'; 
    5457 
    5558}