Make WordPress Core

Opened 3 years ago

Closed 3 years ago

Last modified 3 years ago

#54999 closed defect (bug) (duplicate)

PHP8.1: Passing null to parameter #2 ($numeric_prefix) of type string is deprecated

Reported by: haozi's profile haozi Owned by:
Milestone: Priority: normal
Severity: normal Version: 6.0
Component: External Libraries Keywords: php81
Focuses: Cc:

Description

In file wp-includes/Requests/Transport/cURL.php on line 345

                                $data = http_build_query($data, null, '&');

we can fix it like:

<?php
                                $data = http_build_query($data, '', '&');

Change History (2)

#1 @costdev
3 years ago

  • Milestone Awaiting Review deleted
  • Resolution set to duplicate
  • Severity changed from major to normal
  • Status changed from new to closed

Thanks for the report @haozi!

The update of the Requests library is already being tracked in #54504, so I'll close this issue as a duplicate.

#2 @costdev
3 years ago

  • Component changed from HTTP API to External Libraries
Note: See TracTickets for help on using tickets.