WordPress.org

Make WordPress Core

Ticket #17682: isset-http_user_agent.17682.diff

File isset-http_user_agent.17682.diff, 474 bytes (added by duck_, 7 years ago)
  • wp-admin/includes/dashboard.php

     
    11981198 * @since 3.2
    11991199 */
    12001200function wp_check_browser_version() {
     1201        if ( ! isset( $_SERVER['HTTP_USER_AGENT'] ) )
     1202                return;
     1203
    12011204        $key = md5( $_SERVER['HTTP_USER_AGENT'] );
    12021205
    12031206        if ( false === ($response = get_site_transient('browser_' . $key) ) ) {