WordPress.org

Make WordPress Core

Ticket #17323: 17323.option-length.diff

File 17323.option-length.diff, 765 bytes (added by aaroncampbell, 7 years ago)

Fixes the option length of transient timeouts

  • wp-admin/includes/dashboard.php

     
    12001200function wp_check_browser_version() {
    12011201        $key = md5( $_SERVER['HTTP_USER_AGENT'] );
    12021202
    1203         if ( false === ($response = get_site_transient('browsehappy_' . $key) ) ) {
     1203        if ( false === ($response = get_site_transient('bnag_' . $key) ) ) {
    12041204                global $wp_version;
    12051205
    12061206                $options = array(
     
    12291229                if ( ! $response )
    12301230                        return;
    12311231
    1232                 set_site_transient( 'browsehappy_' . $key, $response, 604800 ); // cache for 1 week
     1232                set_site_transient( 'bnag_' . $key, $response, 604800 ); // cache for 1 week
    12331233        }
    12341234
    12351235        return $response;