- Timestamp:
- 09/18/2017 08:21:04 PM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sites/trunk/api.wordpress.org/public_html/core/browse-happy/1.0/browsers.php
r5934 r5935 8 8 9 9 /** 10 * Browser current version numbers.10 * Returns current version numbers for all browsers. 11 11 * 12 12 * These are for major release branches, not full build numbers. 13 13 * Firefox 3.6, 4, etc., not Chrome 11.0.696.65. 14 * 15 * @return array Associative array of browser names with their respective 16 * current (or somewhat current) version number. 14 17 */ 15 18 function get_browser_current_versions() { … … 23 26 } 24 27 28 /** 29 * Returns browser data for a given browser. 30 * 31 * @param string|false $browser The name of the browser. Default false. 32 * @return false|array { 33 * Array of data about the browser. False if the browser is unknown. 34 * 35 * @type string $name Name of the browser. 36 * @type string $wikipedia Wikipedia name for the browser. 37 * @type int|float $normalized How should browser version number be 38 * normalized? 1 == just first number, else 39 * include second number (i.e. decimal value) 40 * @type string $url The home URL for the browser. 41 * @type string $img_src The non-HTTPs URL for the browser's logo image. 42 * @type string $img_src_ssl The HTTPS URL for the browser's logo image. 43 * } 44 */ 25 45 function browsehappy_api_get_browser_data( $browser = false ) { 26 46
Note: See TracChangeset
for help on using the changeset viewer.