Changeset 717
- Timestamp:
- 06/20/2014 12:07:02 AM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sites/trunk/api.wordpress.org/public_html/core/browse-happy/1.0/parse.php
r1 r717 19 19 $data['platform'] = $regs['platform']; 20 20 21 preg_match_all( '%(?P<name> Camino|Kindle|Firefox|(?:Mobile )?Safari|MSIE|RockMelt|AppleWebKit|Chrome|IEMobile|Opera|Version)(?:[/ ])(?P<version>[0-9.]+)%im', $user_agent, $result, PREG_PATTERN_ORDER );21 preg_match_all( '%(?P<name>Trident|Camino|Kindle|Firefox|(?:Mobile )?Safari|MSIE|RockMelt|AppleWebKit|Chrome|IEMobile|Opera|Version)(?:[/ ])(?P<version>[0-9.]+)%im', $user_agent, $result, PREG_PATTERN_ORDER ); 22 22 23 23 // If Version/x.x.x was specified in UA string store it and ignore it … … 58 58 } 59 59 $data['version'] = $result['version'][ $key ]; 60 } else { 60 } elseif ( 'Trident' == $result['name'][0] ) { 61 // IE 11 and beyond have switched to Trident 62 // http://msdn.microsoft.com/en-us/library/ie/hh869301%28v=vs.85%29.aspx 63 $data['name'] = 'Internet Explorer'; 64 if( '7.0' == $result['version'][0] ) { 65 $data['version'] = '11'; 66 } 67 } else { 61 68 $data['name'] = $result['name'][0]; 62 69 $data['version'] = $result['version'][0];
Note: See TracChangeset
for help on using the changeset viewer.