WordPress.org

Making WordPress.org

Changeset 5985


Ignore:
Timestamp:
10/02/2017 04:01:25 PM (2 years ago)
Author:
coffee2code
Message:

Browse Happy API: Report version number for IE 11 as '11.0' instead of '11', to be consistent with value returned for all other IE versions.

Location:
sites/trunk/api.wordpress.org/public_html/core/browse-happy/1.0
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/api.wordpress.org/public_html/core/browse-happy/1.0/parse.php

    r5984 r5985  
    165165        }
    166166        if ( '7.0' == $result['version'][0] ) {
    167             $data['version'] = '11';
     167            $data['version'] = '11.0';
    168168        }
    169169    } else {
  • sites/trunk/api.wordpress.org/public_html/core/browse-happy/1.0/tests/phpunit/tests/browse-happy.php

    r5984 r5985  
    261261            [ // #2587
    262262                'Mozilla/5.0 (Windows NT 6.3; Trident/7.0; rv:11.0) like Gecko',
    263                 'Windows Internet Explorer 11',
     263                'Windows Internet Explorer 11.0',
    264264            ],
    265265            [
     
    285285            [
    286286                'Mozilla/5.0 (Mobile; Windows Phone 8.1; Android 4.0; ARM; Trident/7.0; Touch; rv:11.0; IEMobile/11.0; Microsoft; Lumia 435) like iPhone OS 7_0_3 Mac OS X AppleWebKit/537 (KHTML, like Gecko) Mobile Safari/537',
    287                 'Windows Phone OS Internet Explorer Mobile 11',
     287                'Windows Phone OS Internet Explorer Mobile 11.0',
    288288            ],
    289289            [
    290290                'Mozilla/5.0 (Windows Phone 8.1; ARM; Trident/7.0; Touch; rv:11.0; IEMobile/11.0; NOKIA; Lumia 520) like Gecko',
    291                 'Windows Phone OS Internet Explorer Mobile 11',
     291                'Windows Phone OS Internet Explorer Mobile 11.0',
    292292            ],
    293293
Note: See TracChangeset for help on using the changeset viewer.