Shorten key used for browse happy site transient so it fits in option_name. fixes #17323, props AaronCampbell.

git-svn-id: http://svn.automattic.com/wordpress/trunk@17895 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
nacin 2011-05-12 05:45:02 +00:00
parent 54f42be38d
commit 815d4fd975

View File

@ -1200,7 +1200,7 @@ function dashboard_browser_nag_class( $classes ) {
function wp_check_browser_version() {
$key = md5( $_SERVER['HTTP_USER_AGENT'] );
if ( false === ($response = get_site_transient('browsehappy_' . $key) ) ) {
if ( false === ($response = get_site_transient('browser_' . $key) ) ) {
global $wp_version;
$options = array(
@ -1229,7 +1229,7 @@ function wp_check_browser_version() {
if ( ! $response )
return;
set_site_transient( 'browsehappy_' . $key, $response, 604800 ); // cache for 1 week
set_site_transient( 'browser_' . $key, $response, 604800 ); // cache for 1 week
}
return $response;