WordPress.org

Make WordPress Core

Opened 4 years ago

Closed 4 years ago

#33753 closed defect (bug) (fixed)

Fix documentation of wp_check_browser_version()

Reported by: extendwings Owned by: SergeyBiryukov
Milestone: 4.4 Priority: normal
Severity: normal Version: 3.2
Component: General Keywords: has-patch
Focuses: docs Cc:

Description

It seems the documentation of wp_check_browser_version()'s return value is wrong.

Attachments (1)

33753.diff (837 bytes) - added by extendwings 4 years ago.

Download all attachments as: .zip

Change History (3)

@extendwings
4 years ago

#1 @swissspidy
4 years ago

  • Focuses administration removed
  • Keywords has-patch added
  • Milestone changed from Awaiting Review to 4.4
  • Version changed from trunk to 3.2

Just tested this with some API requests and can confirm this.

Surprisingly the API is kinda broken/outdated, returning 9 as the current_version of Internet Explorer for example. However, this value is never used in core.

#2 @SergeyBiryukov
4 years ago

  • Owner set to SergeyBiryukov
  • Resolution set to fixed
  • Status changed from new to closed

In 33932:

Correct description for version and current_version parameters in wp_check_browser_version() response.

Props extendwings.
Fixes #33753.

Note: See TracTickets for help on using tickets.