Make WordPress Core

Ticket #35721: 35721.2.patch

File 35721.2.patch, 1.3 KB (added by ramiy, 8 years ago)
  • wp-admin/includes/update.php

     
    230230        if ( ! isset( $cur->response ) || $cur->response != 'upgrade' )
    231231                return false;
    232232
     233        $msg = sprintf(
     234                /* translators: %s: New WordPress version */
     235                __( '<a href="%1$s">WordPress %2$s</a> is available!' ),
     236                esc_url( sprintf( __( 'https://codex.wordpress.org/Version_%s' ), $cur->current ) ),
     237                $cur->current
     238        );
     239
    233240        if ( current_user_can('update_core') ) {
    234                 $msg = sprintf( __( '<a href="https://codex.wordpress.org/Version_%1$s">WordPress %1$s</a> is available! <a href="%2$s" aria-label="Please update WordPress now">Please update now</a>.' ), $cur->current, network_admin_url( 'update-core.php' ) );
     241                $msg .= ' <a href="' . network_admin_url( 'update-core.php' ) . '" aria-label="' . __( 'Please update WordPress now' ) . '">' . __( 'Please update now' ) . '</a>.';
    235242        } else {
    236                 $msg = sprintf( __('<a href="https://codex.wordpress.org/Version_%1$s">WordPress %1$s</a> is available! Please notify the site administrator.'), $cur->current );
     243                $msg .= ' ' . __( 'Please notify the site administrator.' );
    237244        }
     245
    238246        echo "<div class='update-nag'>$msg</div>";
    239247}
    240248