[wp-trac] [WordPress Trac] #54504: Update Requests library to version 2.0.0
WordPress Trac
noreply at wordpress.org
Tue Jan 10 11:28:51 UTC 2023
#54504: Update Requests library to version 2.0.0
-------------------------------------------------+-------------------------
Reporter: jrf | Owner:
| hellofromTonya
Type: task (blessed) | Status: closed
Priority: normal | Milestone: 6.2
Component: External Libraries | Version:
Severity: normal | Resolution: fixed
Keywords: php80 php81 has-patch has-unit- | Focuses:
tests early early-like-actually-early commit |
-------------------------------------------------+-------------------------
Comment (by SergeyBiryukov):
In [changeset:"55046" 55046]:
{{{
#!CommitTicketReference repository="" revision="55046"
HTTP API: Use correct class reference for Requests' HTTP Proxy in
`WP_Http::request()`.
Renaming the class was missed in [54997] when updating changes in
`WP_Http::request()` for the Requests 2.0.0 external library upgrade. The
`HTTP` class no longer exists and caused a fatal error:
{{{
PHP Fatal error: Class 'WpOrg\Requests\Proxy\HTTP' not found in wp-
includes/class-wp-http.php on line 382
}}}
This commit renames the class to `Http` and resolves the fatal error.
Follow-up to [52244], [52315], [52327], [52328], [54997], [55007].
Props danielbachhuber, jrf.
See #54504.
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/54504#comment:120>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list