Make WordPress Core

Changeset 20781


Ignore:
Timestamp:
05/13/2012 10:44:01 PM (13 years ago)
Author:
nacin
Message:

Revert [20776], and instead pass the current locale to browsehappy.com.

File:
1 edited

Legend:

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

    r20776 r20781  
    11591159        }
    11601160        $notice .= "<p class='browser-update-nag{$browser_nag_class}'>{$msg}</p>";
    1161         $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>';
     1161
     1162        $browsehappy = 'http://browsehappy.com/';
     1163        $locale = get_locale();
     1164        if ( 'en_US' !== $locale )
     1165            $browsehappy = add_query_arg( 'locale', $locale, $browsehappy );
     1166
     1167        $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>';
    11621168        $notice .= '<p class="hide-if-no-js"><a href="" class="dismiss">' . __( 'Dismiss' ) . '</a></p>';
    11631169        $notice .= '<div class="clear"></div>';
Note: See TracChangeset for help on using the changeset viewer.