WordPress.org

Make WordPress Core

Ticket #14954: 14954.patch

File 14954.patch, 663 bytes (added by hakre, 4 years ago)

Updated Patch

  • wp-includes/vars.php

     
    4040if ( isset($_SERVER['HTTP_USER_AGENT']) ) { 
    4141        if ( strpos($_SERVER['HTTP_USER_AGENT'], 'Lynx') !== false ) { 
    4242                $is_lynx = true; 
    43         } elseif ( stripos($_SERVER['HTTP_USER_AGENT'], 'chrome') !== false ) { 
     43        } elseif ( stripos($_SERVER['HTTP_USER_AGENT'], 'chrome') !== false && strpos( $_SERVER['HTTP_USER_AGENT'], 'chromeframe' ) === false ) { 
    4444                $is_chrome = true; 
    4545        } elseif ( stripos($_SERVER['HTTP_USER_AGENT'], 'safari') !== false ) { 
    4646                $is_safari = true;