[wp-trac] [WordPress Trac] #37073: Remove deprecated argument from wp_get_http_headers
WordPress Trac
noreply at wordpress.org
Fri Jun 10 16:27:16 UTC 2016
#37073: Remove deprecated argument from wp_get_http_headers
-------------------------+-----------------------------
Reporter: borgesbruno | Owner:
Type: enhancement | Status: new
Priority: normal | Milestone: Awaiting Review
Component: General | Version:
Severity: normal | Keywords:
Focuses: |
-------------------------+-----------------------------
There is a deprecated argument in `wp_get_http_headers` since the 2.7
WordPress version that isn't used in any place, actually there is only one
call for this function in ''src/wp-includes/functions.php'' `if ( $headers
= wp_get_http_headers( $url) ) {`, which do not use this argument, so,
seems there is no need for this argument, in aditional I've wrote tests to
cover this function and improve the coverage.
If there is some utility for this let me know, because the unit tests will
be useful
--
Ticket URL: <https://core.trac.wordpress.org/ticket/37073>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list