Make WordPress Core

Ticket #35721: 35721.patch

File 35721.patch, 1.2 KB (added by ramiy, 9 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="https://codex.wordpress.org/Version_%s">WordPress %s</a> is available!' ),
     236                $cur->current
     237        );
     238
    233239        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' ) );
     240                $msg .= ' <a href="' . network_admin_url( 'update-core.php' ) . '" aria-label="' . __( 'Please update WordPress now' ) . '">' . __( 'Please update now' ) . '</a>.';
    235241        } 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 );
     242                $msg .= ' ' . __( 'Please notify the site administrator.' );
    237243        }
     244
    238245        echo "<div class='update-nag'>$msg</div>";
    239246}
    240247