From b8caf0e864792a611c256c3f575c27d84bc33c86 Mon Sep 17 00:00:00 2001 From: Andrew Nacin Date: Sun, 13 May 2012 22:44:01 +0000 Subject: [PATCH] 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 --- wp-admin/includes/dashboard.php | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/wp-admin/includes/dashboard.php b/wp-admin/includes/dashboard.php index eeb2ae70a3..37408e1287 100644 --- a/wp-admin/includes/dashboard.php +++ b/wp-admin/includes/dashboard.php @@ -1158,7 +1158,13 @@ function wp_dashboard_browser_nag() { $browser_nag_class = ' has-browser-icon'; } $notice .= "

{$msg}

"; - $notice .= '

' . sprintf( __( 'Update %2$s or learn how to browse happy' ), esc_attr( $response['update_url'] ), esc_html( $response['name'] ), __( 'http://browsehappy.com/' ) ) . '

'; + + $browsehappy = 'http://browsehappy.com/'; + $locale = get_locale(); + if ( 'en_US' !== $locale ) + $browsehappy = add_query_arg( 'locale', $locale, $browsehappy ); + + $notice .= '

' . sprintf( __( 'Update %2$s or learn how to browse happy' ), esc_attr( $response['update_url'] ), esc_html( $response['name'] ), esc_url( $browsehappy ) ) . '

'; $notice .= '

' . __( 'Dismiss' ) . '

'; $notice .= '
'; }