Shorten key used for browse happy site transient so it fits in option_name. fixes #17323, props AaronCampbell.
git-svn-id: https://develop.svn.wordpress.org/trunk@17895 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
f82be20f59
commit
66d2117c54
|
@ -1200,7 +1200,7 @@ function dashboard_browser_nag_class( $classes ) {
|
||||||
function wp_check_browser_version() {
|
function wp_check_browser_version() {
|
||||||
$key = md5( $_SERVER['HTTP_USER_AGENT'] );
|
$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;
|
global $wp_version;
|
||||||
|
|
||||||
$options = array(
|
$options = array(
|
||||||
|
@ -1229,7 +1229,7 @@ function wp_check_browser_version() {
|
||||||
if ( ! $response )
|
if ( ! $response )
|
||||||
return;
|
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;
|
return $response;
|
||||||
|
|
Loading…
Reference in New Issue