[wp-trac] [WordPress Trac] #25179: New required parameter added to WP_Http::processHeaders can cause warnings
WordPress Trac
noreply at wordpress.org
Thu Aug 29 15:20:30 UTC 2013
#25179: New required parameter added to WP_Http::processHeaders can cause warnings
--------------------------+-----------------------------
Reporter: jshreve | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: General | Version:
Severity: normal | Keywords:
--------------------------+-----------------------------
3.7 only bug (so does not involve stable)
I noticed that a new required parameter was added to
WP_Http::processHeaders in [25044] by @dd32.
The problem is, if something was using this function (which is a public
member) then you'll get a warning like:
{{{
Warning: Missing argument 2 for WP_Http::processHeaders()
}}}
I've since patched my code to pass the $url - but since this function has
been around since 2.7 I'm guessing other code out there will hit that
warning.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/25179>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list