[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 Mar 30 21:26:50 UTC 2023
#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: closed
Priority: normal | Milestone:
Component: HTTP API | Version: 6.2
Severity: normal | Resolution: invalid
Keywords: | Focuses:
--------------------------+----------------------
Changes (by afragen):
* status: reopened => closed
* resolution: => invalid
Comment:
This is very much an edge case where I save the result of
`wp_remote_head()` to a transient and then get the transient. Since the
return is a Requests object getting the object runs `unserialize()` which
also tries to instantiate the object.
Moral of the story. Don't store class objects other that `stdClass`. Parse
the response and store that.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/57350#comment:7>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list