[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.
git-svn-id: http://svn.automattic.com/wordpress/trunk@18297 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
626fa3b3d3
commit
9d2edcd9ac
|
@ -1171,9 +1171,9 @@ function wp_dashboard_browser_nag() {
|
||||||
|
|
||||||
if ( $response ) {
|
if ( $response ) {
|
||||||
if ( $response['insecure'] ) {
|
if ( $response['insecure'] ) {
|
||||||
$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'] ) );
|
$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'] ) );
|
||||||
} else {
|
} else {
|
||||||
$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'] ) );
|
$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'] ) );
|
||||||
}
|
}
|
||||||
|
|
||||||
$browser_nag_class = '';
|
$browser_nag_class = '';
|
||||||
|
|
Loading…
Reference in New Issue