Following the update to replace the HTTP API internals with Requests library in WordPress 4.6, the return value of `wp_remote_retrieve_headers()` has changed from a simple array to an object which implements `ArrayAccess`. Since `wp_get_http_headers()` directly returns the result of `wp_remote_retrieve_headers()`, its return value should reflect that change. Includes: * Updating the return value for the deprecated `wp_get_http()` function, which also directly returns the result of `wp_remote_retrieve_headers()`. * Minor DocBlock formatting changes for some other HTTP API functions per the documentation standards. Follow-up to [2416], [6390], [8092], [9013], [37428], [37989], [38730]. Props mhkuu. See #54225, #55646. Built from https://develop.svn.wordpress.org/trunk@54157 git-svn-id: http://core.svn.wordpress.org/trunk@53716 1a063a9b-81f0-0310-95a4-ce76da25c4cd
23 KiB
23 KiB