#40839 closed defect (bug) (fixed)
Incorrect and incomplete inline docs for wp_check_browser_version()
Reported by: | coffee2code | Owned by: | SergeyBiryukov |
---|---|---|---|
Milestone: | 4.8 | Priority: | normal |
Severity: | trivial | Version: | |
Component: | Administration | Keywords: | has-patch |
Focuses: | docs | Cc: |
Description
The inline docs for wp_check_browser_version()
in wp-admin/includes/dashboard.php
incorrectly states that the response array from the BrowseHappy API will include the upgrade_url
key. In reality, the name for the key is update_url
. (The correct key name is used in the actual code.)
Additionally, the API may return a platform
key and value, which isn't mentioned in the inline docs.
The attached patch corrects the misnamed response key and adds docs for the missing key.
Attachments (1)
Change History (3)
Note: See
TracTickets for help on using
tickets.
Patch to correct misnamed key and add docs for omitted key