[wp-trac] [WordPress Trac] #57341: `Error: Class "Requests" not found` in trunk
WordPress Trac
noreply at wordpress.org
Fri Dec 16 17:19:12 UTC 2022
#57341: `Error: Class "Requests" not found` in trunk
-------------------------------------------------+-------------------------
Reporter: bjorsch | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting
| Review
Component: HTTP API | Version: trunk
Severity: normal | Resolution:
Keywords: needs-testing-info has-patch has- | Focuses:
unit-tests |
-------------------------------------------------+-------------------------
Comment (by jrf):
Replying to [comment:6 bjorsch]:
> Replying to [comment:3 jrf]:
> > To be honest, I'm not even sure this _should_ be solved in Core.
Plugins which want to continue to use the old class names can do so (and
can manually include the `wp-includes/class-requests.php` file), but
should expect deprecation notices (which can be silenced).
>
> I think it should. The deprecation notices are expected when using the
BC layer, but a fatal is not.
Correct and I support an implementation of the third option, which we both
suggested. (snap :high-five:)
--
Ticket URL: <https://core.trac.wordpress.org/ticket/57341#comment:8>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list