Making WordPress.org


Ignore:
Timestamp:
12/18/2015 10:52:29 PM (9 years ago)
Author:
coffee2code
Message:

Browse Happy: Skip checking any browser running under Linux.

This commit syncs uncommitted changes made in production.

File:
1 edited

Legend:

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

    r2216 r2217  
    106106        if ( false !== strpos( $data, 'Android' ) || false !== strpos( $data, 'iOS' ) )
    107107            continue;
     108        if ( false !== strpos( $data, 'Linux' ) && false === strpos( $data, 'Mac OS X' ) && false === strpos( $data, 'Windows' ) )
     109            continue;
    108110        if ( ( false !== $pos = strpos( $data, 'latest_release_version' ) ) || ( false !== $pos = strpos( $data, 'latest release version' ) ) ) {
    109111            if ( $pos )
    110112                $data = substr( $data, $pos );
    111113            $version = trim( str_replace( array( 'latest_release_version', 'latest release version', '=' ), '', $data ), '| ' ) . " ";
     114            $version = str_replace( "'''Mac OS X''' and '''Microsoft Windows'''<br />", '', $version );
    112115            $version = substr( $version, 0, strpos( $version, ' ' ) );
    113116            break;
Note: See TracChangeset for help on using the changeset viewer.