Changeset 2589 for sites/trunk/browsehappy.com/public_html/functions.php
- Timestamp:
- 02/24/2016 09:15:46 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sites/trunk/browsehappy.com/public_html/functions.php
r2588 r2589 43 43 'info' => __( '“The fastest browser on Earth—secure, powerful and easy to use, with excellent privacy protection. And it is free.”', 'browsehappy' ), 44 44 ), 45 'edge' => (object) array( 46 'name' => 'Microsoft Edge', 47 'long_name' => 'Microsoft Edge', 48 'wikipedia' => 'Microsoft_Edge', 49 'normalized' => 1, // just first number 50 'facebook' => 'MicrosoftEdge', 51 'url' => 'https://www.microsoft.com/en-us/windows/microsoft-edge', 52 'info' => __( '“Microsoft Edge ranks first when put to real world page load tests. Whether you use the web to search, watch or play, this browser won’t slow you down.”', 'browsehappy' ), 53 ), 45 54 'ie' => (object) array( 46 55 'name' => 'Internet Explorer', … … 106 115 if ( false !== strpos( $data, 'Android' ) || false !== strpos( $data, 'iOS' ) ) 107 116 continue; 108 if ( false !== strpos( $data, 'Linux' ) && false === strpos( $data, 'Mac OS X' ) && false === strpos( $data, 'Windows' ) )117 if ( false !== strpos( $data, 'Linux' ) && false === strpos( $data, 'Mac OS X' ) && false === strpos( $data, 'Windows' ) && false === strpos( $data, 'Microsoft' ) ) 109 118 continue; 110 119 if ( ( false !== $pos = strpos( $data, 'latest_release_version' ) ) || ( false !== $pos = strpos( $data, 'latest release version' ) ) ) { … … 113 122 $version = trim( str_replace( array( 'latest_release_version', 'latest release version', '=' ), '', $data ), '| ' ) . " "; 114 123 $version = str_replace( "'''Mac OS X''' and '''Microsoft Windows'''<br />", '', $version ); 124 $version = str_replace( "'''Windows 10'''<br>", '', $version ); 115 125 $version = substr( $version, 0, strpos( $version, ' ' ) ); 116 126 break;
Note:
See TracChangeset
for help on using the changeset viewer.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)