Make WordPress Core


Ignore:
Timestamp:
06/13/2011 08:30:53 AM (14 years ago)
Author:
nacin
Message:

[18294] was a bit too quick to eliminate backslashed apostrophes in translated strings. $s as a placeholder becomes a variable. Switch to %s and %s, as the href will always come before the text, so no need for numbered placeholders. fixes #17781.

File:
1 edited

Legend:

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

    r18294 r18297  
    11721172    if ( $response ) {
    11731173        if ( $response['insecure'] ) {
    1174             $msg = sprintf( __( "It looks like you're using an insecure version of <a href='%1$s'>%2$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'] ) );
     1174            $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'] ) );
    11751175        } else {
    1176             $msg = sprintf( __( "It looks like you're using an old version of <a href='%1$s'>%2$s</a>. For the best WordPress experience, please update your browser." ), esc_attr( $response['update_url'] ), esc_html( $response['name'] ) );
     1176            $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'] ) );
    11771177        }
    11781178
Note: See TracChangeset for help on using the changeset viewer.