diff --git a/src/wp-admin/includes/update.php b/src/wp-admin/includes/update.php index 28a12f42b8..4f6b06d5a5 100644 --- a/src/wp-admin/includes/update.php +++ b/src/wp-admin/includes/update.php @@ -230,10 +230,30 @@ function update_nag() { if ( ! isset( $cur->response ) || $cur->response != 'upgrade' ) return false; - if ( current_user_can('update_core') ) { - $msg = sprintf( __( 'WordPress %1$s is available! Please update now.' ), $cur->current, network_admin_url( 'update-core.php' ) ); + if ( current_user_can( 'update_core' ) ) { + $msg = sprintf( + /* translators: 1: Codex URL to release notes, 2: new WordPress version, 3: URL to network admin, 4: accessibility text */ + __( 'WordPress %2$s is available! Please update now.' ), + sprintf( + /* translators: %s: WordPress version */ + esc_url( __( 'https://codex.wordpress.org/Version_%s' ) ), + $cur->current + ), + $cur->current, + network_admin_url( 'update-core.php' ), + esc_attr__( 'Please update WordPress now' ) + ); } else { - $msg = sprintf( __('WordPress %1$s is available! Please notify the site administrator.'), $cur->current ); + $msg = sprintf( + /* translators: 1: Codex URL to release notes, 2: new WordPress version */ + __( 'WordPress %2$s is available! Please notify the site administrator.' ), + sprintf( + /* translators: %s: WordPress version */ + esc_url( __( 'https://codex.wordpress.org/Version_%s' ) ), + $cur->current + ), + $cur->current + ); } echo "
$msg
"; }