Make WordPress Core

Opened 5 years ago

Closed 5 years ago

Last modified 5 years ago

#54999 closed defect (bug) (duplicate)

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

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

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
5 years ago

  • Milestone Awaiting Review
  • Resolutionduplicate
  • Severity majornormal
  • Status newclosed

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
5 years ago

  • Component HTTP APIExternal Libraries
Note: See TracTickets for help on using tickets.