Making WordPress.org

Changeset 5967


Ignore:
Timestamp:
09/27/2017 08:52:36 PM (9 years ago)
Author:
coffee2code
Message:

Browse Happy API: Fix Chrome user-agent parsing when an explicit 'Version/' value is defined, which in this case shouldn't be used.

Fixes sole failing unit test.

File:
1 edited

Legend:

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

    r5964 r5967  
    9393                } elseif ( $key = array_search( 'Chrome', $result['name'] ) ) {
    9494                        $data['name'] = 'Chrome';
     95                        $version = '';
    9596                } elseif ( ! empty( $data['platform'] ) && 'PlayBook' == $data['platform'] ) {
    9697                        $data['name'] = 'PlayBook';
Note: See TracChangeset for help on using the changeset viewer.