Make WordPress Core

Ticket #51742: 51742.12.diff

File 51742.12.diff, 1.2 KB (added by audrasjb, 4 years ago)

Add "only" to Core auto-updates status string when sites are set to auto-update to minors versions only and adding a heading in case we are running a development version of WordPress

  • src/wp-admin/update-core.php

    diff --git a/src/wp-admin/update-core.php b/src/wp-admin/update-core.php
    index 5a4a8d369f..8869dc3ce2 100644
    a b function list_core_update( $update ) { 
    6262        $show_buttons  = true;
    6363
    6464        if ( 'development' === $update->response ) {
    65                 $message = __( 'You are using a development version of WordPress. You can update to the latest nightly build manually:' );
     65                $message = __( 'You can update to the latest nightly build manually:' );
    6666        } else {
    6767                if ( $current ) {
    6868                        /* translators: %s: WordPress version. */
    function core_upgrade_preamble() { 
    278278                }
    279279        }
    280280
     281        echo '<h2>' . __( 'You are using a development version of WordPress' ) . '</h2>';
    281282        echo '<ul class="core-updates">';
    282283        foreach ( (array) $updates as $update ) {
    283284                echo '<li>';
    function core_auto_updates_settings() { 
    407408                                );
    408409                        }
    409410                } elseif ( $upgrade_minor ) {
    410                         _e( 'This site is automatically kept up to date with maintenance and security releases of WordPress.' );
     411                        _e( 'This site is only automatically kept up to date with maintenance and security releases of WordPress.' );
    411412
    412413                        if ( $can_set_update_option ) {
    413414                                echo '<br>';