[wp-trac] [WordPress Trac] #52622: Fix PHP Warning on PHP7.2 in class-wp-http-curl.php
WordPress Trac
noreply at wordpress.org
Tue Feb 23 12:38:36 UTC 2021
#52622: Fix PHP Warning on PHP7.2 in class-wp-http-curl.php
----------------------------------------------+----------------------------
Reporter: sjoerdlinders | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting
| Review
Component: HTTP API | Version: 5.6.2
Severity: normal | Keywords: needs-patch
Focuses: administration, coding-standards |
----------------------------------------------+----------------------------
Added the default settings parameter 'decompress' with the default value
'false'.
{{{#!php
<?php
$defaults = array(
'method' => 'GET',
'timeout' => 5,
'redirection' => 5,
'httpversion' => '1.0',
'blocking' => true,
'headers' => array(),
'body' => null,
'cookies' => array(),
'decompress' => false,
);
}}}
If this array element is not pre-defined it will result in a warning on
line 316:
{{{#!php
<?php
if ( true === $parsed_args['decompress'] && ...
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/52622>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list