[wp-trac] [WordPress Trac] #57350: The trunk of WordPress Core may stops CI of plugin developer by trigger_error: E_USER_DEPRECATED "The PSR-0 `Requests_...` class names in the Request library are deprecated."
WordPress Trac
noreply at wordpress.org
Thu Dec 22 00:40:03 UTC 2022
#57350: The trunk of WordPress Core may stops CI of plugin developer by
trigger_error: E_USER_DEPRECATED "The PSR-0 `Requests_...` class names in
the Request library are deprecated."
--------------------------+------------------------------
Reporter: yshinoda | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: HTTP API | Version: trunk
Severity: normal | Resolution:
Keywords: | Focuses:
--------------------------+------------------------------
Changes (by peterwilsoncc):
* component: General => HTTP API
Comment:
Trunk updated Requests to version 2.0 recently, see #54504.
As the code you link to is initilizing Requests directly using the
Requests 1.x class names then these deprecation warnings are expected.
To avoid the deprecation warnings you'll need to switch to the new class
structure of Requests 2.x or use the the `wp_remote_*` functions or the
`WP_Http` class to interact with Requests. I suggest using the WordPress
functions and classes.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/57350#comment:2>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list