mirror of
https://github.com/WordPress/WordPress.git
synced 2024-11-05 02:10:45 +01:00
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:
parent
54f42be38d
commit
815d4fd975
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user