[wp-trac] [WordPress Trac] #57341: `Error: Class "Requests" not found` in trunk

WordPress Trac noreply at wordpress.org
Fri Dec 16 16:08:29 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  |     Focuses:
--------------------------------+------------------------------

Comment (by jrf):

 Oh... just thinking.. what ''may'' be an elegant way to solve this,
 preventing the fatal, but still putting the onus of upgrading their code
 on plugin developers:

 > Add a `wp-includes/Requests/library/Requests.php` file with the only
 content in that file being `include_once ABSPATH . WPINC . '/class-
 requests.php`.

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/57341#comment:4>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list