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

WordPress Trac noreply at wordpress.org
Fri Dec 16 15:39:20 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 bjorsch):

 You can add this as a mu-plugin to reproduce it.
 {{{#!php
 <?php

 function test_57341() {
         ?>
 <div style="border:10px solid red"><?php echo Requests::GET; ?></div>
         <?php
 }
 add_action( 'wp_head', 'test_57341' );
 }}}
 On 6.1.1 it produces a box with the word "GET" at the top of the page,
 while with trunk it produces a fatal error.

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


More information about the wp-trac mailing list