[wp-trac] [WordPress Trac] #57325: Fix the error 'Undefined array key' in 'wp-includes\class-requests.php' on line 214

WordPress Trac noreply at wordpress.org
Wed Dec 14 16:16:28 UTC 2022


#57325: Fix the error 'Undefined array key' in 'wp-includes\class-requests.php' on
line 214
--------------------------+------------------------
 Reporter:  ilyachalov    |       Owner:  (none)
     Type:  defect (bug)  |      Status:  closed
 Priority:  normal        |   Milestone:
Component:  General       |     Version:
 Severity:  normal        |  Resolution:  duplicate
 Keywords:  has-patch     |     Focuses:
--------------------------+------------------------
Changes (by SergeyBiryukov):

 * status:  new => closed
 * resolution:   => duplicate
 * milestone:  Awaiting Review =>


Comment:

 Hi there, welcome to WordPress Trac! Thank you for the detailed bug
 report.

 Please note that [https://github.com/WordPress/Requests Requests] is an
 external library and should not be patched directly in WordPress core, any
 suggested changes would need to be submitted to the upstream GitHub
 repository.

 It looks like this code
 [https://github.com/WordPress/Requests/blob/de70158c68ccf3ab823cace91772834c43324934/src/Requests.php#L271-L273
 was already refactored] in Requests 2.0.0, this commit fixes the issue as
 far as I can tell:
 >
 [https://github.com/WordPress/Requests/commit/00387044144da1b92af58aa6b904ac0c52a08a18
 Add Requests::has_capability() which can be used to determine if SSL is
 available]

 See #54504 for updating the Requests library to the latest version.

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


More information about the wp-trac mailing list