#54999 closed defect (bug) (duplicate)
PHP8.1: Passing null to parameter #2 ($numeric_prefix) of type string is deprecated
Reported by: | 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)
Note: See
TracTickets for help on using
tickets.
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.