Opened 5 years ago
Closed 5 years ago
#49005 closed defect (bug) (fixed)
Documentation: WP_HTTP timeout is a float, not an int.
Reported by: | georgestephanis | Owned by: | SergeyBiryukov |
---|---|---|---|
Milestone: | 5.4 | Priority: | low |
Severity: | minor | Version: | |
Component: | HTTP API | Keywords: | has-patch commit |
Focuses: | docs | Cc: |
Description
As demonstrated in Core since [10474] timeout hasn't been an int.
The Requests library also documents it as a float, with millisecond precision:
https://core.trac.wordpress.org/browser/trunk/src/wp-includes/class-requests.php?rev=46661#L309
Patch attached.
Attachments (1)
Change History (6)
Note: See
TracTickets for help on using
tickets.
Thanks to @benedictsinger for spotting this at a meetup and asking why we were passing a float to an int parameter. :)