Making WordPress.org

Changeset 2210


Ignore:
Timestamp:
12/18/2015 10:39:02 PM (10 years ago)
Author:
coffee2code
Message:

Browse Happy: When pulling version values from Wikipedia, avoid Android and iOS versions.

Prevents picking up mobile version #s from the Chrome page (no longer applicable with more recent changes to said page).

This commit syncs changes made in edd235 of Browse Happy git repo.

See: https://github.com/WordPress/browsehappy/commit/edd2359d1139382239cde95ce17a72632789687c

Original committer: nacin.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/browsehappy.com/public_html/functions.php

    r1 r2210  
    101101    foreach( $raw_data as $data ) {
    102102        $data = trim( $data, '| ' );
     103        if ( false !== strpos( $data, 'Android' ) || false !== strpos( $data, 'iOS' ) )
     104            continue;
    103105        if ( ( false !== $pos = strpos( $data, 'latest_release_version' ) ) || ( false !== $pos = strpos( $data, 'latest release version' ) ) ) {
    104106            if ( $pos )
Note: See TracChangeset for help on using the changeset viewer.