Make WordPress Core


Ignore:
Timestamp:
10/30/2015 01:32:17 AM (9 years ago)
Author:
SergeyBiryukov
Message:

Don't use <a> in translatable strings in `wp-admin/includes/dashboard.php'.

Add translator commments.

Props ramiy.
Fixes #34501.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/includes/dashboard.php

    r35414 r35443  
    12661266    if ( $response ) {
    12671267        if ( $response['insecure'] ) {
    1268             $msg = sprintf( __( "It looks like you're using an insecure version of <a href='%s'>%s</a>. Using an outdated browser makes your computer unsafe. For the best WordPress experience, please update your browser." ), esc_attr( $response['update_url'] ), esc_html( $response['name'] ) );
     1268            /* translators: %s: browser name and link */
     1269            $msg = sprintf( __( "It looks like you're using an insecure version of %s. Using an outdated browser makes your computer unsafe. For the best WordPress experience, please update your browser." ),
     1270                sprintf( '<a href="%s">%s</a>', esc_url( $response['update_url'] ), esc_html( $response['name'] ) )
     1271            );
    12691272        } else {
    1270             $msg = sprintf( __( "It looks like you're using an old version of <a href='%s'>%s</a>. For the best WordPress experience, please update your browser." ), esc_attr( $response['update_url'] ), esc_html( $response['name'] ) );
     1273            /* translators: %s: browser name and link */
     1274            $msg = sprintf( __( "It looks like you're using an old version of %s. For the best WordPress experience, please update your browser." ),
     1275                sprintf( '<a href="%s">%s</a>', esc_url( $response['update_url'] ), esc_html( $response['name'] ) )
     1276            );
    12711277        }
    12721278
Note: See TracChangeset for help on using the changeset viewer.