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

WordPress Trac noreply at wordpress.org
Fri Dec 16 20:52:57 UTC 2022


#57341: `Error: Class "Requests" not found` in trunk
-------------------------------------------------+-------------------------
 Reporter:  bjorsch                              |       Owner:  (none)
     Type:  defect (bug)                         |      Status:  new
 Priority:  normal                               |   Milestone:  6.2
Component:  HTTP API                             |     Version:  trunk
 Severity:  normal                               |  Resolution:
 Keywords:  has-testing-info has-patch has-      |     Focuses:
  unit-tests commit                              |
-------------------------------------------------+-------------------------

Comment (by ironprogrammer):

 == Test Report

 Patch tested: https://github.com/WordPress/wordpress-
 develop/pull/3776.diff 👍🏻

 === Environment
 - Hardware: MacBook Pro Apple M1 Pro
 - OS: macOS 12.6.1
 - Browser: Safari 16.1
 - Server: nginx/1.23.2
 - PHP: 7.4.33
 - WordPress: 6.2-alpha-54642-src
 - Active Plugins:
  - trac-57341 (mu-plugin described in comment:2)

 === Actual Results
 - ✅ Call to non-namespaced `Requests::GET` no longer fatals, and produces
 the following deprecation notice:
 {{{
 Deprecated: The PSR-0 `Requests_...` class names in the Request library
 are deprecated. Switch to the PSR-4 `WpOrg\Requests\...` class names at
 your earliest convenience. in .../wp-includes/class-requests.php on line
 24
 }}}
 - ✅ Call to namespaced `WpOrg\Requests\Requests::GET` succeeds and does
 not produce a deprecation notice.

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


More information about the wp-trac mailing list