Ticket #14537: 14537.5.patch
| File 14537.5.patch, 946 bytes (added by hakre, 3 years ago) |
|---|
-
wp-includes/vars.php
40 40 if ( isset($_SERVER['HTTP_USER_AGENT']) ) { 41 41 if ( strpos($_SERVER['HTTP_USER_AGENT'], 'Lynx') !== false ) { 42 42 $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 ) { 44 44 $is_chrome = true; 45 45 } elseif ( stripos($_SERVER['HTTP_USER_AGENT'], 'safari') !== false ) { 46 46 $is_safari = true; … … 62 62 63 63 $is_IE = ( $is_macIE || $is_winIE ); 64 64 65 // Google Chrome Frame Support 66 if ( strpos( $_SERVER['HTTP_USER_AGENT'], 'chromeframe' ) && apply_filters( 'use_google_chrome_frame', is_admin() ) ) 67 header('X-UA-Compatible: chrome=1'); 68 65 69 // Server detection 66 70 67 71 /**
