Make WordPress Core

Ticket #31046: 31046.diff

File 31046.diff, 1.3 KB (added by dd32, 9 years ago)
  • src/wp-admin/includes/update.php

    function core_update_footer( $msg = '' ) 
    191191
    192192        if ( ! isset( $cur->current ) )
    193193                $cur->current = '';
    194194
    195195        if ( ! isset( $cur->url ) )
    196196                $cur->url = '';
    197197
    198198        if ( ! isset( $cur->response ) )
    199199                $cur->response = '';
    200200
    201201        switch ( $cur->response ) {
    202202        case 'development' :
    203203                return sprintf( __( 'You are using a development version (%1$s). Cool! Please <a href="%2$s">stay updated</a>.' ), get_bloginfo( 'version', 'display' ), network_admin_url( 'update-core.php' ) );
    204204
    205205        case 'upgrade' :
    206                 return sprintf( '<strong>'.__( '<a href="%1$s">Get Version %2$s</a>' ).'</strong>', network_admin_url( 'update-core.php' ), $cur->current);
     206                return sprintf( '<strong>' . __( 'Version %1$s. Please <a href="%2$s">update to %3$s</a>.' ) . '</strong>', get_bloginfo( 'version', 'display' ), network_admin_url( 'update-core.php' ), $cur->current );
    207207
    208208        case 'latest' :
    209209        default :
    210210                return sprintf( __( 'Version %s' ), get_bloginfo( 'version', 'display' ) );
    211211        }
    212212}
    213213
    214214/**
    215215 *
    216216 * @global string $pagenow
    217217 * @return false|void
    218218 */
    219219function update_nag() {
    220220        if ( is_multisite() && !current_user_can('update_core') )
    221221                return false;