mirror of
git://develop.git.wordpress.org/
synced 2025-01-18 05:18:42 +01:00
Revert [20776], and instead pass the current locale to browsehappy.com.
git-svn-id: https://develop.svn.wordpress.org/trunk@20781 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
89151382e8
commit
b8caf0e864
@ -1158,7 +1158,13 @@ function wp_dashboard_browser_nag() {
|
||||
$browser_nag_class = ' has-browser-icon';
|
||||
}
|
||||
$notice .= "<p class='browser-update-nag{$browser_nag_class}'>{$msg}</p>";
|
||||
$notice .= '<p>' . sprintf( __( '<a href="%1$s" class="update-browser-link">Update %2$s</a> or learn how to <a href="%3$s" class="browse-happy-link">browse happy</a>' ), esc_attr( $response['update_url'] ), esc_html( $response['name'] ), __( 'http://browsehappy.com/' ) ) . '</p>';
|
||||
|
||||
$browsehappy = 'http://browsehappy.com/';
|
||||
$locale = get_locale();
|
||||
if ( 'en_US' !== $locale )
|
||||
$browsehappy = add_query_arg( 'locale', $locale, $browsehappy );
|
||||
|
||||
$notice .= '<p>' . sprintf( __( '<a href="%1$s" class="update-browser-link">Update %2$s</a> or learn how to <a href="%3$s" class="browse-happy-link">browse happy</a>' ), esc_attr( $response['update_url'] ), esc_html( $response['name'] ), esc_url( $browsehappy ) ) . '</p>';
|
||||
$notice .= '<p class="hide-if-no-js"><a href="" class="dismiss">' . __( 'Dismiss' ) . '</a></p>';
|
||||
$notice .= '<div class="clear"></div>';
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user